aboutsummaryrefslogtreecommitdiffstats
path: root/dist/archlinux/stable/adjbacklight.install
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-30 04:10:45 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-30 04:10:45 +0100
commit53d7927147ec1d7d267f8074ea8d30051cb284c5 (patch)
treede7547cbf5f719918f27dda01d6f33e507ad9101 /dist/archlinux/stable/adjbacklight.install
parentm info + add direntry to info (diff)
downloadadjbacklight-53d7927147ec1d7d267f8074ea8d30051cb284c5.tar.gz
adjbacklight-53d7927147ec1d7d267f8074ea8d30051cb284c5.tar.bz2
adjbacklight-53d7927147ec1d7d267f8074ea8d30051cb284c5.tar.xz
update dist
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'dist/archlinux/stable/adjbacklight.install')
-rw-r--r--dist/archlinux/stable/adjbacklight.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/dist/archlinux/stable/adjbacklight.install b/dist/archlinux/stable/adjbacklight.install
new file mode 100644
index 0000000..ab4d945
--- /dev/null
+++ b/dist/archlinux/stable/adjbacklight.install
@@ -0,0 +1,20 @@
+_file="adjbacklight"
+
+infodir="usr/share/info"
+file="${_file}.info"
+
+
+post_install() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+