summaryrefslogtreecommitdiffstats
path: root/abs/core/sed/sed.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:53:03 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:53:03 (GMT)
commiteffedab9cb3034ef67ed0bf9b4d2ef94e96a30aa (patch)
tree673caf6c4cd2cba01a1f99c20805e9154011e386 /abs/core/sed/sed.install
parentf733b00c8c603d6d62706e5a4057ab774ad6f407 (diff)
downloadlinhes_pkgbuild-effedab9cb3034ef67ed0bf9b4d2ef94e96a30aa.zip
linhes_pkgbuild-effedab9cb3034ef67ed0bf9b4d2ef94e96a30aa.tar.gz
linhes_pkgbuild-effedab9cb3034ef67ed0bf9b4d2ef94e96a30aa.tar.bz2
sed: upgrade
Diffstat (limited to 'abs/core/sed/sed.install')
-rw-r--r--abs/core/sed/sed.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core/sed/sed.install b/abs/core/sed/sed.install
new file mode 100644
index 0000000..c052403
--- /dev/null
+++ b/abs/core/sed/sed.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(sed.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
+}