xbps-base-files: some changes to all triggers.

--HG--
extra : convert_revision : 2f3a39a7d1853268b84c5087cbbf5e74044c20f0
This commit is contained in:
Juan RP
2009-05-19 02:13:58 +02:00
parent 38e6679ff5
commit 5b3489c9ea
13 changed files with 56 additions and 85 deletions

View File

@@ -7,25 +7,25 @@
# $3 = pkgname
# $4 = version
#
trigger="pango-modules"
pango_bin=./usr/bin/pango-querymodules
pango_modules=./etc/pango/pango.modules
pango_bin=usr/bin/pango-querymodules
pango_modules=etc/pango/pango.modules
case "$1" in
targets)
echo "post-install post-remove"
;;
run)
echo "Running $trigger trigger..."
case "$2" in
post-*)
if [ -f ${pango_modules} ]; then
echo "Removing $trigger list file..."
rm -f ${pango_modules}
if [ "${PKGNAME}" = "pango" ]; then
if [ -f ${pango_modules} ]; then
echo "Removing pango modules file..."
rm -f ${pango_modules}
fi
break
fi
if [ -x ${pango_bin} ]; then
echo "Creating $trigger list file..."
echo "Updating pango modules file..."
${pango_bin} > ${pango_modules}
fi
;;