From fa5be5703825098b48ae6573424e6498af40d96c Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Sat, 11 Mar 2017 15:31:33 -0800 Subject: poudriere: Allow -v to increase VERBOSE since not all sub-commands allow it. --- src/bin/poudriere | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/bin/poudriere') diff --git a/src/bin/poudriere b/src/bin/poudriere index bdd776dc..dd534feb 100755 --- a/src/bin/poudriere +++ b/src/bin/poudriere @@ -39,7 +39,8 @@ Options: -e etcdir -- Specify an alternate etc/ dir where poudriere configuration resides. -N -- Disable colors - + -v -- Be verbose; show more information. Use twice to enable + debug output Commands: bulk -- Generate packages for given ports distclean -- Remove old distfiles @@ -59,7 +60,7 @@ EOF } SETX="" -while getopts "e:Nx" FLAG; do +while getopts "e:Nvx" FLAG; do case "${FLAG}" in e) if [ ! -d "$OPTARG" ]; then @@ -71,6 +72,9 @@ while getopts "e:Nx" FLAG; do N) USE_COLORS="no" ;; + v) + VERBOSE=$((${VERBOSE:-0} + 1)) + ;; x) SETX="-x" ;; @@ -113,6 +117,7 @@ CMD_ENV="${CMD_ENV} LIBEXECPREFIX=${LIBEXECPREFIX}" CMD_ENV="${CMD_ENV} PATH=${LIBEXECPREFIX}:${PATH}:/sbin:/usr/sbin" CMD_ENV="${CMD_ENV} POUDRIERE_VERSION=${POUDRIERE_VERSION}" CMD_ENV="${CMD_ENV} POUDRIEREPATH=${POUDRIEREPATH}" +[ -n "${VERBOSE}" ] && CMD_ENV="${CMD_ENV} VERBOSE=${VERBOSE}" # Handle special-case commands first. case "${CMD}" in -- cgit v1.2.3