diff options
author | root <root@rshg047.dnsready.net> | 2011-05-17 22:43:03 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-17 22:43:03 +0000 |
commit | 4a67ab8a761f1d0ef59988a513f9f2163f94a869 (patch) | |
tree | ef060a1cf768b53a89958df6252193bda9c86d25 /testing/grep/grep.install | |
parent | 2f0d12506e7145c0fe4c056e4fbcda1e724dda95 (diff) |
Tue May 17 22:43:03 UTC 2011
Diffstat (limited to 'testing/grep/grep.install')
-rw-r--r-- | testing/grep/grep.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/grep/grep.install b/testing/grep/grep.install new file mode 100644 index 000000000..7cd31301f --- /dev/null +++ b/testing/grep/grep.install @@ -0,0 +1,21 @@ +infodir=usr/share/info +filelist=(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 +} + +post_upgrade() { + 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 +} + |