summaryrefslogtreecommitdiffstats
path: root/abs/core/which/which.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 19:06:42 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 19:06:42 (GMT)
commitfb573c82b5a4a27c8b0e9fd41033463f31c4871a (patch)
tree2f992da875589ee082d4ca8b83c6f748d0ffaa69 /abs/core/which/which.install
parent338a8c75f972e9549d088e4620e8181b8f597fa5 (diff)
downloadlinhes_pkgbuild-fb573c82b5a4a27c8b0e9fd41033463f31c4871a.zip
linhes_pkgbuild-fb573c82b5a4a27c8b0e9fd41033463f31c4871a.tar.gz
linhes_pkgbuild-fb573c82b5a4a27c8b0e9fd41033463f31c4871a.tar.bz2
which 2.20
Diffstat (limited to 'abs/core/which/which.install')
-rw-r--r--abs/core/which/which.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/abs/core/which/which.install b/abs/core/which/which.install
index 899bd6f..167e250 100644
--- a/abs/core/which/which.install
+++ b/abs/core/which/which.install
@@ -2,8 +2,9 @@ infodir=/usr/share/info
filelist=(which.info)
post_install() {
+ [ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
- install-info $infodir/$file $infodir/dir 2> /dev/null
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
@@ -12,9 +13,8 @@ post_upgrade() {
}
pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}
-
-# vim:set ts=2 sw=2 et: