diff options
Diffstat (limited to 'abs/core/bison/bison.install')
-rw-r--r-- | abs/core/bison/bison.install | 12 |
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 } |