summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/readline/readline.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-14 17:07:43 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-14 17:07:43 (GMT)
commit9567b2cee338e3c6db164af89febb5e46a199024 (patch)
tree524d78d3066a24b295b6bb32de035242c18e6966 /abs/core-testing/readline/readline.install
parentcd0abe476f3a6644ef546a03737e30d2295e0f0c (diff)
downloadlinhes_pkgbuild-9567b2cee338e3c6db164af89febb5e46a199024.zip
linhes_pkgbuild-9567b2cee338e3c6db164af89febb5e46a199024.tar.gz
linhes_pkgbuild-9567b2cee338e3c6db164af89febb5e46a199024.tar.bz2
Update readline to 5.2.013
Diffstat (limited to 'abs/core-testing/readline/readline.install')
-rw-r--r--abs/core-testing/readline/readline.install23
1 files changed, 18 insertions, 5 deletions
diff --git a/abs/core-testing/readline/readline.install b/abs/core-testing/readline/readline.install
index 6b5a1dc..8e3de84 100644
--- a/abs/core-testing/readline/readline.install
+++ b/abs/core-testing/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
+}
+