diff options
author | root <root@rshg047.dnsready.net> | 2011-06-26 23:06:14 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-26 23:06:14 +0000 |
commit | 715631caf52784c47c8ed3aeb6cbdba2715a08db (patch) | |
tree | d1923d66cba8dcf90112f81ca31009202cff25a3 /testing/grep/grep.install | |
parent | 8999fa1750304fb2367fb7743e49e013405e88be (diff) |
Sun Jun 26 23:06:14 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 +} + |