texinfo: alright, I was wrong, this is the real fix in install

This commit is contained in:
Chaoting Liu 2016-03-27 14:51:57 +01:00
parent f636d98abf
commit d0a2362a4d
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
pkgname=texinfo
pkgver=5.2
pkgrel=2
pkgrel=3
pkgdesc="Utilities to work with and produce manuals, ASCII text, and on-line documentation from a single source file"
arch=('x86_64')
url="http://www.gnu.org/software/texinfo/"

View File

@ -1,21 +1,21 @@
infodir=/usr/share/info
filelist=(info info-stnd texinfo texinfo-1 texinfo-2 texinfo-3)
filelist=(info.info info-stnd.info texinfo.info{,-{1,2,3}})
post_install() {
# Scan *all* info files on install
for file in $(find $infodir -type f ! -name dir); do
install-info $file $infodir/dir 2> /dev/null
install-info $file $infodir/dir
done
}
post_upgrade() {
for file in ${filelist[@]}; do
install-info $infodir/$file.info.gz $infodir/dir 2> /dev/null
install-info $infodir/$file.gz $infodir/dir
done
}
pre_remove() {
for file in ${filelist[@]}; do
install-info --delete $infodir/$file.info.gz $infodir/dir 2> /dev/null
install-info --delete $infodir/$file.gz $infodir/dir
done
}