diff options
author | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2004-11-09 22:20:56 +0000 |
---|---|---|
committer | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2004-11-09 22:20:56 +0000 |
commit | cb6ac0edad665d2b0fb742ae689535755c3c5ffa (patch) | |
tree | 2b2924cdeefff222e82e23f423efec42526f4380 /japanese/font-shinonome | |
parent | b000f92b14566ced1f44d527e39115e350171cdd (diff) |
Notes
Diffstat (limited to 'japanese/font-shinonome')
-rw-r--r-- | japanese/font-shinonome/pkg-req | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/japanese/font-shinonome/pkg-req b/japanese/font-shinonome/pkg-req index 530a1f527213..59fb70886e11 100644 --- a/japanese/font-shinonome/pkg-req +++ b/japanese/font-shinonome/pkg-req @@ -22,12 +22,16 @@ fi # font alias entry here! FONTS_ALIAS=${PKG_PREFIX}/share/doc/shinonome/fonts.alias +grepv() { + awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2 +} + if [ "$2" = "DEINSTALL" ] ; then echo "Updating ${FONTDIR}/fonts.alias" cd ${FONTDIR} touch fonts.alias cp fonts.alias fonts.alias.orig - grep -v -- "`cat ${FONTS_ALIAS}`" fonts.alias.orig > fonts.alias + grepv ${FONTS_ALIAS} fonts.alias.orig > fonts.alias rm -f fonts.alias.orig fi |