summaryrefslogtreecommitdiffstats
path: root/abs/core/texinfo/texinfo.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 19:01:30 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 19:01:30 (GMT)
commit6ba11d82357ee2f24b12ccd92ab5747d198df0da (patch)
treec2f9bf007f973cd8ffc400e851a62a3c31afe340 /abs/core/texinfo/texinfo.install
parentdd0640965bc6bc0fd1ade2c7ef21e0475392bbf6 (diff)
downloadlinhes_pkgbuild-6ba11d82357ee2f24b12ccd92ab5747d198df0da.zip
linhes_pkgbuild-6ba11d82357ee2f24b12ccd92ab5747d198df0da.tar.gz
linhes_pkgbuild-6ba11d82357ee2f24b12ccd92ab5747d198df0da.tar.bz2
texinfo: 4.13a
Diffstat (limited to 'abs/core/texinfo/texinfo.install')
-rw-r--r--abs/core/texinfo/texinfo.install15
1 files changed, 9 insertions, 6 deletions
diff --git a/abs/core/texinfo/texinfo.install b/abs/core/texinfo/texinfo.install
index 87c7ac4..f1554e4 100644
--- a/abs/core/texinfo/texinfo.install
+++ b/abs/core/texinfo/texinfo.install
@@ -1,18 +1,21 @@
-infodir=/usr/share/info
-filelist=(info.info.gz info-stnd.info.gz texinfo.gz texinfo-1.gz texinfo-2.gz texinfo-3.gz)
+infodir=usr/share/info
+filelist=(info.info info-stnd.info texinfo texinfo-1 texinfo-2 texinfo-3)
post_install() {
- for file in ${filelist[@]}; do
- install-info $infodir/$file $infodir/dir 2> /dev/null
+ # Scan *all* info files on install
+ for file in $(find $infodir -type f ! -name dir); do
+ install-info $file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
- post_install $1
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
}
pre_remove() {
for file in ${filelist[@]}; do
- install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}