diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/readline/readline.install | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/core/readline/readline.install')
-rw-r--r-- | abs/core/readline/readline.install | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/abs/core/readline/readline.install b/abs/core/readline/readline.install index 6b5a1dc..8e3de84 100644 --- a/abs/core/readline/readline.install +++ b/abs/core/readline/readline.install @@ -1,9 +1,22 @@ -# arg 1: the new package version -# arg 2: the old package version +infodir=/usr/share/info +filelist=(history.info readline.info rluserman.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + post_upgrade() { + post_install $1 echo ">> You can safely ignore any \"cannot open shared object\" errors you see above" } -op=$1 -shift -$op $* +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + |