mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 09:47:13 +08:00
texinfo: alright, I was wrong, this is the real fix in install
This commit is contained in:
parent
f636d98abf
commit
d0a2362a4d
@ -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/"
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user