summaryrefslogtreecommitdiff
path: root/pcr/ocp/ocp.install
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-05 18:45:36 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-05-05 18:45:52 -0400
commit532f991fcd33ced9c1831c3eac32b40bbe38fc47 (patch)
treed916dc670143a21783dc49f0dfaa93a960c948b7 /pcr/ocp/ocp.install
parent622fd5d8456c277f10830387f6123d150f0e7b36 (diff)
downloadabslibre-532f991fcd33ced9c1831c3eac32b40bbe38fc47.tar.gz
abslibre-532f991fcd33ced9c1831c3eac32b40bbe38fc47.tar.bz2
abslibre-532f991fcd33ced9c1831c3eac32b40bbe38fc47.zip
add pcr/ocp and dependencies
Diffstat (limited to 'pcr/ocp/ocp.install')
-rw-r--r--pcr/ocp/ocp.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/ocp/ocp.install b/pcr/ocp/ocp.install
new file mode 100644
index 000000000..0b4b28a47
--- /dev/null
+++ b/pcr/ocp/ocp.install
@@ -0,0 +1,27 @@
+infodir=usr/share/info
+filelist=(ocp.info)
+
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in "${filelist[@]}"; do
+ install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in "${filelist[@]}"; do
+ install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+ done
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+}
+
+# vim:set ts=2 sw=2 et: