aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authortota <tota@FreeBSD.org>2011-09-03 08:10:39 +0800
committertota <tota@FreeBSD.org>2011-09-03 08:10:39 +0800
commit87587931bfa1dda04e8ef7de1c949b0331fbefff (patch)
treef77e085c6ff80eaa55152cc692a107f2e8c63dcc /japanese
parent6f3bb55dbef557475310ec518b8e51c29ac6472c (diff)
downloadfreebsd-ports-gnome-87587931bfa1dda04e8ef7de1c949b0331fbefff.tar.gz
freebsd-ports-gnome-87587931bfa1dda04e8ef7de1c949b0331fbefff.tar.zst
freebsd-ports-gnome-87587931bfa1dda04e8ef7de1c949b0331fbefff.zip
- Fix pkg-install and pkg-deinstall scripts
Pointed out by: Akira Sasaki at [FreeBSD-users-jp 93511]
Diffstat (limited to 'japanese')
-rw-r--r--japanese/alias-fonts/Makefile2
-rw-r--r--japanese/alias-fonts/pkg-deinstall5
-rw-r--r--japanese/alias-fonts/pkg-install7
3 files changed, 6 insertions, 8 deletions
diff --git a/japanese/alias-fonts/Makefile b/japanese/alias-fonts/Makefile
index ef0f27c080a5..9ce7cbee9b71 100644
--- a/japanese/alias-fonts/Makefile
+++ b/japanese/alias-fonts/Makefile
@@ -7,7 +7,7 @@
PORTNAME= alias-fonts
PORTVERSION= 1.0
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= japanese x11-fonts
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/japanese/alias-fonts/pkg-deinstall b/japanese/alias-fonts/pkg-deinstall
index 3092b9f797fe..30fef6cb237d 100644
--- a/japanese/alias-fonts/pkg-deinstall
+++ b/japanese/alias-fonts/pkg-deinstall
@@ -16,9 +16,8 @@ IFS="
while read line; do
trimmed=${line# *}
case $trimmed in
- !*|"") echo $line;;
- -alias-*) echo $line;;
- *) ;;
+ -alias-*) ;;
+ *) echo $line;;
esac
done < $from > $to
diff --git a/japanese/alias-fonts/pkg-install b/japanese/alias-fonts/pkg-install
index b28bcfd2204c..98d30c641cd6 100644
--- a/japanese/alias-fonts/pkg-install
+++ b/japanese/alias-fonts/pkg-install
@@ -1,7 +1,7 @@
#!/bin/sh
# $FreeBSD$
-if [ $1 != "POST-INSTALL" ]; then
+if [ $2 != "POST-INSTALL" ]; then
exit 0
fi
@@ -20,9 +20,8 @@ IFS="
while read line; do
trimmed=${line# *}
case $trimmed in
- !*|"") echo $line;;
- -alias-*) echo $line;;
- *) ;;
+ -alias-*) ;;
+ *) echo $line;;
esac
done < $from > $to