Improve the info-files and register-shell triggers.

This avoids the need of having to create a new file in pkg metadata
dir with a few lines and puts all them in the INSTALL/REMOVE
scripts.

--HG--
extra : convert_revision : 2dc1d3f6ddcc6aec7dadf14df475c32959df0aba
This commit is contained in:
Juan RP
2009-07-30 12:34:31 +02:00
parent 8a31007139
commit 76c23bbd96
6 changed files with 71 additions and 54 deletions

View File

@@ -1,8 +1,8 @@
#
# This script registers all currently installed info files.
#
texinfo_files="info.info.gz info-stnd.info.gz texinfo.gz
texinfo-1.gz texinfo-2.gz texinfo-3.gz"
texinfo_files="info.info.gz info-stnd.info.gz texinfo.gz"
texinfo_files="${texinfo_files} texinfo-1.gz texinfo-2.gz texinfo-3.gz"
case "${ACTION}" in
pre)
@@ -20,6 +20,9 @@ post)
continue
fi
echo -n "Registering info file: ${file#.}... "
if [ "${file#.}" = "/usr/share/info/dir" ]; then
continue
fi
install-info $file ./usr/share/info/dir 2> /dev/null
if [ $? -eq 0 ]; then
echo "done."