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
This commit is contained in:
Juan RP
2009-03-12 11:16:08 +01:00
parent 37c27f7307
commit 53747489f0
8 changed files with 343 additions and 93 deletions

31
templates/texinfo/INSTALL Normal file
View File

@@ -0,0 +1,31 @@
#
# 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