summarylogtreecommitdiffstats
path: root/dispass.install
diff options
context:
space:
mode:
Diffstat (limited to 'dispass.install')
-rw-r--r--dispass.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/dispass.install b/dispass.install
new file mode 100644
index 000000000000..3858f462bb78
--- /dev/null
+++ b/dispass.install
@@ -0,0 +1,29 @@
+INFO_DIR=usr/share/info
+
+update_icons() {
+ if [ -x usr/bin/xdg-icon-resource ]; then
+ xdg-icon-resource forceupdate --theme hicolor > /dev/null 2>&1
+ fi
+}
+
+post_install() {
+ update_icons
+
+ if [ -x usr/bin/install-info ]; then
+ install-info ${INFO_DIR}/dispass.info.gz ${INFO_DIR}/dir \
+ 2> /dev/null
+ fi
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ update_icons
+
+ if [ -x usr/bin/install-info ]; then
+ install-info --delete ${INFO_DIR}/dispass.info.gz \
+ ${INFO_DIR}/dir 2> /dev/null
+ fi
+}