summaryrefslogtreecommitdiffstats
path: root/abs/core/texinfo/texinfo.install
diff options
context:
space:
mode:
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
}