void-packages/templates/texinfo/INSTALL
Juan RP 53747489f0 Implemented support for running triggers with binpkgs.
Also the following changes were made:
 * Added an info-files trigger, to (un)register info files.
 * xbps-base-dirs: it's responsible to install triggers on destdir.

--HG--
extra : convert_revision : 8d707053616f38d2b5beef7cf28e1bc4a66812b8
2009-03-12 11:16:08 +01:00

31 lines
617 B
Text

#
# 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"
case "$2" in
pre)
;;
post)
for file in $(find ./usr/share/info -type f ! -name dir); do
for i in ${texinfo_files}; do
if [ "$(basename ${file#.})" = "${i}" ]; then
found=1
break
fi
done
if [ -n "$found" ]; then
unset found
continue
fi
echo -n "Registering info file: ${file#.}... "
install-info $file ./usr/share/info/dir 2> /dev/null
if [ $? -eq 0 ]; then
echo "done."
else
echo "failed!"
fi
done
;;
esac