From 87587931bfa1dda04e8ef7de1c949b0331fbefff Mon Sep 17 00:00:00 2001 From: tota Date: Sat, 3 Sep 2011 00:10:39 +0000 Subject: - Fix pkg-install and pkg-deinstall scripts Pointed out by: Akira Sasaki at [FreeBSD-users-jp 93511] --- japanese/alias-fonts/Makefile | 2 +- japanese/alias-fonts/pkg-deinstall | 5 ++--- japanese/alias-fonts/pkg-install | 7 +++---- 3 files changed, 6 insertions(+), 8 deletions(-) (limited to 'japanese') 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 -- cgit