summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/ledger-git/ledger.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/ledger-git/ledger.install b/pcr/ledger-git/ledger.install
new file mode 100644
index 000000000..2e9cc88ce
--- /dev/null
+++ b/pcr/ledger-git/ledger.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+infofiles=(ledger3.info.gz ledger-mode.info.gz)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${infofiles[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${infofiles[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}