summaryrefslogtreecommitdiffstats
path: root/abs/extra/guile/guile.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/guile/guile.install')
-rw-r--r--abs/extra/guile/guile.install11
1 files changed, 7 insertions, 4 deletions
diff --git a/abs/extra/guile/guile.install b/abs/extra/guile/guile.install
index 8fab0b1..5d1eeaf 100644
--- a/abs/extra/guile/guile.install
+++ b/abs/extra/guile/guile.install
@@ -1,3 +1,4 @@
+infodir=/usr/share/info
files=(goops.info
guile-tut.info
guile.info
@@ -11,8 +12,9 @@ files=(goops.info
r5rs.info)
post_install() {
- for f in "${files[@]}"; do
- install-info usr/share/info/${f}.gz usr/share/info/dir 2>/dev/null
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
@@ -21,7 +23,8 @@ post_upgrade() {
}
pre_remove() {
- for f in "${files[@]}"; do
- install-info --delete usr/share/info/${f}.gz usr/share/info/dir 2> /dev/null
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}