[arch-commits] Commit in librep/trunk (librep.install)

Juergen Hoetzel juergen at archlinux.org
Tue Jan 6 13:22:28 UTC 2009


    Date: Tuesday, January 6, 2009 @ 08:22:27
  Author: juergen
Revision: 23234

Install info file

Added:
  librep/trunk/librep.install

----------------+
 librep.install |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Added: librep.install
===================================================================
--- librep.install	                        (rev 0)
+++ librep.install	2009-01-06 13:22:27 UTC (rev 23234)
@@ -0,0 +1,22 @@
+info_dir=/usr/share/info
+info_files=(librep.info) 
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f ${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 ${info_dir}/dir 2> /dev/null
+  done
+}
+
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list