aboutsummaryrefslogtreecommitdiff
path: root/japanese/font-mplus-bitmap/files/pkg-install.in
blob: fcfacd78440f46706d9baa2612bf655e8cf50686 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# $FreeBSD$

case "$2" in
POST-INSTALL)
	cd %%FONTSDIR%%
	touch fonts.alias
	grep -v -- "mplus[_-]" fonts.alias > fonts.alias.tmp
	cat fonts.alias.tmp %%FONTSALIAS%% > fonts.alias
	rm -f fonts.alias.tmp
;;
DEINSTALL)
	cd %%FONTSDIR%%
	touch fonts.alias
	grep -v -- "mplus[_-]" fonts.alias > fonts.alias.tmp
	if [ -s fonts.alias.tmp ]; then
		mv fonts.alias.tmp fonts.alias
	else
		rm -f fonts.alias.tmp fonts.alias
	fi
;;
esac