summaryrefslogtreecommitdiff
path: root/pcr/recutils/recutils.install
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-22 10:52:18 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-22 10:52:18 -0400
commit908d987dd1dcd4899f8f7f0878514c22ca8048b7 (patch)
tree29bf5986774207c3453044e1f370fb98d2431265 /pcr/recutils/recutils.install
parent308bfb446305a96dffce945b6c4fb82b10d1b91b (diff)
parent8351d69e64a40d68fa32cfeea227b6fcf7afe974 (diff)
downloadabslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.gz
abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.bz2
abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/recutils/recutils.install')
-rw-r--r--pcr/recutils/recutils.install36
1 files changed, 36 insertions, 0 deletions
diff --git a/pcr/recutils/recutils.install b/pcr/recutils/recutils.install
new file mode 100644
index 000000000..245c7ae01
--- /dev/null
+++ b/pcr/recutils/recutils.install
@@ -0,0 +1,36 @@
+_infodir=/usr/share/info
+_infofiles=( recutils.info.gz )
+
+_mandir=/usr/share/man/man1
+_manfiles=( csv2rec.1.gz rec2csv.1.gz recdel.1.gz recfix.1.gz recfmt.1.gz recinf.1.gz recins.1.gz recsel.1.gz recset.1.gz)
+
+## arg 1: the new package version
+post_install() {
+ [ -x /usr/bin/mandb ] || return 0
+ for _file in ${_manfiles[@]}; do
+ mandb -f $_mandir/$_file
+ done
+
+ [ -x /usr/bin/install-info ] || return 0
+ for _file in ${_infofiles[@]}; do
+ install-info $_infodir/$_file $_infodir/dir #2> /dev/null
+ done
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x /usr/bin/mandb ] || return 0
+ mandb
+
+ [ -x /usr/bin/install-info ] || return 0
+ for _file in ${_infofiles[@]}; do
+ install-info --delete $_infodir/$_file $_infodir/dir #2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: