summaryrefslogtreecommitdiffstats
path: root/abs/core/bison/bison.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:52:12 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:52:12 (GMT)
commit6242385a68ad78a27b72fd9ec50a8dcd41f77ef1 (patch)
treee3d61b9aba92dbd90c4ee6d386e30d8ad7399e48 /abs/core/bison/bison.install
parent39d885a41216f774afad473d79227ec1c57e7fb5 (diff)
downloadlinhes_pkgbuild-6242385a68ad78a27b72fd9ec50a8dcd41f77ef1.zip
linhes_pkgbuild-6242385a68ad78a27b72fd9ec50a8dcd41f77ef1.tar.gz
linhes_pkgbuild-6242385a68ad78a27b72fd9ec50a8dcd41f77ef1.tar.bz2
bison: upgrade
Diffstat (limited to 'abs/core/bison/bison.install')
-rw-r--r--abs/core/bison/bison.install12
1 files changed, 5 insertions, 7 deletions
diff --git a/abs/core/bison/bison.install b/abs/core/bison/bison.install
index b0cdfe9..890eb03 100644
--- a/abs/core/bison/bison.install
+++ b/abs/core/bison/bison.install
@@ -1,10 +1,9 @@
infodir=/usr/share/info
-filelist=(bison.info.gz)
+file=bison.info.gz
post_install() {
- for file in ${filelist[@]}; do
- install-info $infodir/$file $infodir/dir 2> /dev/null
- done
+ [ -x usr/bin/install-info ] || return 0
+ install-info $infodir/$file $infodir/dir 2> /dev/null
}
post_upgrade() {
@@ -12,7 +11,6 @@ post_upgrade() {
}
pre_remove() {
- for file in ${filelist[@]}; do
- install-info --delete $infodir/$file $infodir/dir 2> /dev/null
- done
+ [ -x usr/bin/install-info ] || return 0
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
}