diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-11-04 19:29:17 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-11-04 19:29:17 (GMT) |
commit | 9e6c835afb726b1eb283d7b81b37b86dd5e5f0a0 (patch) | |
tree | a613bb0df33a4ff32f69a71c3c62391b8dbc6513 /abs/core/grep/grep.install | |
parent | 4339ddf11c25a2db077d3694286b7104073ad9d7 (diff) | |
download | linhes_pkgbuild-9e6c835afb726b1eb283d7b81b37b86dd5e5f0a0.zip linhes_pkgbuild-9e6c835afb726b1eb283d7b81b37b86dd5e5f0a0.tar.gz linhes_pkgbuild-9e6c835afb726b1eb283d7b81b37b86dd5e5f0a0.tar.bz2 |
grep: update to 2.22
Diffstat (limited to 'abs/core/grep/grep.install')
-rw-r--r-- | abs/core/grep/grep.install | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/abs/core/grep/grep.install b/abs/core/grep/grep.install index 7cd3130..a594d9c 100644 --- a/abs/core/grep/grep.install +++ b/abs/core/grep/grep.install @@ -1,21 +1,18 @@ infodir=usr/share/info -filelist=(grep.info) +file=grep.info post_install() { - [ -x usr/bin/install-info ] || return 0 - for file in ${filelist[@]}; do - install-info $infodir/$file.gz $infodir/dir 2> /dev/null - done + [[ -x usr/bin/install-info ]] || return 0 + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null } post_upgrade() { - post_install $1 + post_install "$1" } pre_remove() { - [ -x usr/bin/install-info ] || return 0 - for file in ${filelist[@]}; do - install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null - done + [[ -x usr/bin/install-info ]] || return 0 + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null } +# vim:set ts=2 sw=2 ft=sh et: |