diff options
author | jlam <jlam> | 2007-07-12 19:41:46 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-07-12 19:41:46 +0000 |
commit | 1284ee6e56b1007029648fc8d31744d85422f85a (patch) | |
tree | 65d9ea88d837da23ad3b2a98c4094192d75dc2c4 /mk/pkginstall/fonts | |
parent | ee5e03c1b1bac0ecaef8b7afc869d9a5b78cf70b (diff) | |
download | pkgsrc-1284ee6e56b1007029648fc8d31744d85422f85a.tar.gz |
* Add a user-settable variable to tune the default verbosity of the
+INSTALL and +DEINSTALL scripts:
PKGINSTALL_VERBOSE
A list of scriptlets that will be verbose and output a message
noting the actions taken.
* "all" is a special value that implies all of the other items
* "fonts" for +FONTS
* "info-files" for +INFO_FILES
Default value: "all" for PKG_DEVELOPERs, empty otherwise.
* Be "one-liner brief" when doing the default actions. For example,
the info files output now looks like:
gmake-3.81: registering info file /usr/pkg/info/make.info
We retain the current verbosity for the CHECK-* actions.
Diffstat (limited to 'mk/pkginstall/fonts')
-rw-r--r-- | mk/pkginstall/fonts | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/mk/pkginstall/fonts b/mk/pkginstall/fonts index f205a68808d..76b676711b5 100644 --- a/mk/pkginstall/fonts +++ b/mk/pkginstall/fonts @@ -1,4 +1,4 @@ -# $NetBSD: fonts,v 1.4 2007/01/02 11:47:26 joerg Exp $ +# $NetBSD: fonts,v 1.5 2007/07/12 19:41:46 jlam Exp $ # # Generate a +FONTS script that updates font databases for the package. # @@ -56,8 +56,17 @@ case "${PKG_UPDATE_FONTS_DB:-@PKG_UPDATE_FONTS_DB@}" in ;; esac +case "${FONTS_VERBOSE:-@FONTS_VERBOSE@}" in +[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) + echo="${ECHO}" + ;; +[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) + echo=":" + ;; +esac + ${SED} -n "/^\# FONTS: /{s/^\# FONTS: //;p;}" ${SELF} | ${SORT} -u | -{ while read dir font_type; do +while read dir font_type; do case ${_PKG_UPDATE_FONTS_DB} in no) continue ;; esac @@ -66,15 +75,7 @@ ${SED} -n "/^\# FONTS: /{s/^\# FONTS: //;p;}" ${SELF} | ${SORT} -u | [!/]*) dir="${PKG_PREFIX}/$dir" ;; esac ${TEST} -d "$dir" || continue - case "$printed_header" in - yes) ;; - *) printed_header=yes - ${ECHO} "===========================================================================" - ${ECHO} "Updating font databases in the following directories:" - ${ECHO} "" - ;; - esac - ( ${ECHO} " $dir ($font_type)" + ( $echo "${PKGNAME}: updating font database in $dir ($font_type)" cd $dir update_args= post_update_cmd= @@ -96,11 +97,6 @@ ${SED} -n "/^\# FONTS: /{s/^\# FONTS: //;p;}" ${SELF} | ${SORT} -u | ${FIND} . -type f | ${GREP} -v "/encodings.dir" | ${GREP} -v "/fonts\.scale" | ${GREP} -v "/fonts\.dir" | ${GREP} -v "/Fontmap" >/dev/null || ${RM} -f fonts.dir fonts.scale Fontmap* encodings.dir > /dev/null ) done -case "$printed_header" in -yes) ${ECHO} "" - ${ECHO} "===========================================================================" - ;; -esac; } EOF ${SED} -n "/^\# FONTS: /p" ${SELF} >> ./+FONTS |