Update triggers to use passed args, use /bin/sh -e.
Bump xbps-base-files to 0.30. --HG-- extra : convert_revision : 6158c0bed798e097ba75c902a0be2498e3361e02
This commit is contained in:
@@ -1,18 +1,26 @@
|
||||
#!/bin/sh
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# This trigger rebuilds the fonts.dir and fonts.scale files
|
||||
# for packages that install X11 fonts, and update fontconfig's
|
||||
# cache for those fonts.
|
||||
#
|
||||
# Arguments: $1 = action [run/targets]
|
||||
# $2 = target [post-install/pre-remove]
|
||||
# $3 = pkgname
|
||||
# Arguments: $ACTION = [run/targets]
|
||||
# $TARGET = [post-install/pre-remove]
|
||||
# $PKGNAME
|
||||
# $VERSION
|
||||
# $UPDATE = [yes/no]
|
||||
#
|
||||
ACTION="$1"
|
||||
TARGET="$2"
|
||||
PKGNAME="$3"
|
||||
VERSION="$4"
|
||||
UPDATE="$5"
|
||||
|
||||
mkfontdir=usr/bin/mkfontdir
|
||||
mkfontscale=usr/bin/mkfontscale
|
||||
fccache=usr/bin/fc-cache
|
||||
|
||||
case "$1" in
|
||||
case "$ACTION" in
|
||||
targets)
|
||||
echo "post-install pre-remove"
|
||||
;;
|
||||
@@ -23,7 +31,7 @@ run)
|
||||
|
||||
[ -z "${font_dirs}" ] && exit 0
|
||||
|
||||
case "$2" in
|
||||
case "$TARGET" in
|
||||
post-install)
|
||||
for dir in ${font_dirs}; do
|
||||
echo "Building ${dir}/fonts.dir..."
|
||||
|
||||
Reference in New Issue
Block a user