summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorGaming4JC <g4jc@openmailbox.org>2016-12-07 00:18:11 -0500
committerGaming4JC <g4jc@openmailbox.org>2016-12-07 00:18:11 -0500
commitee1985a8e79bcce4f70ed5f68c16336ed9a054ed (patch)
treeec7909dd0e778df87a4c1b61823e47ce7f7125bb /pcr
parent820e8d238327f427303b8bcecc4c77aba78ac585 (diff)
add ledger-git to pcr
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
+}