diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:48:51 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:48:51 (GMT) |
commit | cb0db1254b45d917c715f5665810697af4985b4d (patch) | |
tree | a47d38117a96ce79764fabf60d58bae25eb46aba /abs/extra/guile/guile.install | |
parent | b98bb238693c6ed782dc7c893986c5b106e8291e (diff) | |
download | linhes_pkgbuild-cb0db1254b45d917c715f5665810697af4985b4d.zip linhes_pkgbuild-cb0db1254b45d917c715f5665810697af4985b4d.tar.gz linhes_pkgbuild-cb0db1254b45d917c715f5665810697af4985b4d.tar.bz2 |
guile 1.8.8
Diffstat (limited to 'abs/extra/guile/guile.install')
-rw-r--r-- | abs/extra/guile/guile.install | 11 |
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 } |