summaryrefslogtreecommitdiffstats
path: root/abs/extra/help2man/help2man.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2011-10-01 16:39:33 (GMT)
committerBritney Fransen <brfransen@gmail.com>2011-10-01 16:39:33 (GMT)
commitd85a54be874d653f47ab9c20d01b69e820b368db (patch)
tree0aa534105337cd7ab2ec254684f23f51ac72537b /abs/extra/help2man/help2man.install
parentb9a07427a9567a8a0170724fba030c13e5114d20 (diff)
downloadlinhes_pkgbuild-d85a54be874d653f47ab9c20d01b69e820b368db.zip
linhes_pkgbuild-d85a54be874d653f47ab9c20d01b69e820b368db.tar.gz
linhes_pkgbuild-d85a54be874d653f47ab9c20d01b69e820b368db.tar.bz2
files that I forgot to add to to git.
Diffstat (limited to 'abs/extra/help2man/help2man.install')
-rw-r--r--abs/extra/help2man/help2man.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/extra/help2man/help2man.install b/abs/extra/help2man/help2man.install
new file mode 100644
index 0000000..ab6585b
--- /dev/null
+++ b/abs/extra/help2man/help2man.install
@@ -0,0 +1,18 @@
+info_dir=/usr/share/info
+info_files=(help2man.info)
+
+post_install() {
+ for f in ${info_files[@]}; do
+ install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+ install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}