summaryrefslogtreecommitdiffstats
path: root/abs/core/gawk/gawk.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:54:37 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:54:37 (GMT)
commit4c046d5977318fc4e2508a5e0322345709f4645d (patch)
tree41fd0544ecb356eb83243c949802f857cb014a45 /abs/core/gawk/gawk.install
parente863b720a27808d4f6ae3875fa8507062fde737e (diff)
downloadlinhes_pkgbuild-4c046d5977318fc4e2508a5e0322345709f4645d.zip
linhes_pkgbuild-4c046d5977318fc4e2508a5e0322345709f4645d.tar.gz
linhes_pkgbuild-4c046d5977318fc4e2508a5e0322345709f4645d.tar.bz2
gawk: upgrade
Diffstat (limited to 'abs/core/gawk/gawk.install')
-rw-r--r--abs/core/gawk/gawk.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core/gawk/gawk.install b/abs/core/gawk/gawk.install
new file mode 100644
index 0000000..95973e4
--- /dev/null
+++ b/abs/core/gawk/gawk.install
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(gawk.info.gz gawkinet.info.gz)
+
+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
+}
+
+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
+}
+
+# vim:set ts=2 sw=2 et: