summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/readline/readline.install
diff options
context:
space:
mode:
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
+}
+