Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2017-03-12 02:31:33 +0300
committerBryan Drewery <bryan@shatow.net>2017-03-12 02:31:51 +0300
commitfa5be5703825098b48ae6573424e6498af40d96c (patch)
tree43d90bf84a77f6b4d62560237058c095e29f5860 /src/bin/poudriere
parenta788d6d4f4cbb9b128b98f1f797920addea08301 (diff)
poudriere: Allow -v to increase VERBOSE since not all sub-commands allow it.
Diffstat (limited to 'src/bin/poudriere')
-rwxr-xr-xsrc/bin/poudriere9
1 files changed, 7 insertions, 2 deletions
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