mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
643b8e8beb
Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
12 lines
550 B
Bash
12 lines
550 B
Bash
# How to cleanly remove a GNU info file from the index:
|
|
# Rebuild the info dir after our info file was removed. With modern versions
|
|
# of install-info, it's OK if our wildcard includes e.g. gcc.info.gz and
|
|
# gcc-1.info.gz (it won't create duplicate index entries). We have at least
|
|
# one package that does NOT compress its info files, for a good reason, so
|
|
# we can't say *.info.gz here.
|
|
if [ -x /usr/bin/install-info -a -d usr/info ]; then
|
|
( cd usr/info
|
|
rm -f dir
|
|
for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
|
|
)
|
|
fi
|