diff options
Diffstat (limited to 'testing/grep/grep.install')
-rw-r--r-- | testing/grep/grep.install | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/testing/grep/grep.install b/testing/grep/grep.install index 7cd31301f..885238ac3 100644 --- a/testing/grep/grep.install +++ b/testing/grep/grep.install @@ -1,11 +1,9 @@ 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 + install-info $infodir/$file.gz $infodir/dir 2> /dev/null } post_upgrade() { @@ -14,8 +12,6 @@ post_upgrade() { 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 + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null } |