diff options
Diffstat (limited to 'japanese/font-kaname12/files/pkg-install.in')
-rw-r--r-- | japanese/font-kaname12/files/pkg-install.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/japanese/font-kaname12/files/pkg-install.in b/japanese/font-kaname12/files/pkg-install.in new file mode 100644 index 000000000000..742953077013 --- /dev/null +++ b/japanese/font-kaname12/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh + +grepv() { + awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2 +} + +case $2 in +POST-INSTALL) + cd %%FONTSDIR%% + touch fonts.alias + cp fonts.alias fonts.alias.orig + (grepv %%FONTSALIAS%% fonts.alias.orig; cat %%FONTSALIAS%%) \ + > fonts.alias + rm -f fonts.alias.orig +;; +DEINSTALL) + cd %%FONTSDIR%% + touch fonts.alias + cp fonts.alias fonts.alias.orig + grepv %%FONTSALIAS%% fonts.alias.orig > fonts.alias + rm -f fonts.alias.orig +;; +esac |