vp-build/templates/texinfo/INSTALL
Juan RP acd07f61e3 Modify the INSTALL/REMOVE scripts to use predef vars and unneeded chroot calls.
--HG--
extra : convert_revision : dfd737c502bea327054ecff5bc1fa152db6e2009
2009-04-08 03:24:57 +02:00

32 lines
624 B
Plaintext

#
# 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 "${ACTION}" 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