From dd76e7c4dc0b3aa61baf7ecadbd9bec5023b5e27 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 13 Jun 2024 16:43:08 +0200 Subject: [PATCH] build-system: swap meaning of --debug and --verbose --- Pmodules/modbuild.in | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index cfb953a..2372d5b 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -7,8 +7,6 @@ # #............................................................................. -echo "$0 $@" - declare VERSION='@PMODULES_VERSION@' # get absolute path of script @@ -223,11 +221,11 @@ parse_args() { -v | --verbose ) trap 'echo "$BASH_COMMAND"' DEBUG opt_verbose='yes' - set -x + echo='echo' ;; --debug ) opt_debug='yes' - echo='echo' + set -x ;; -f | --force-rebuild ) opt_force_rebuild='yes' @@ -1529,7 +1527,7 @@ build_modules() { } debug(){ - ${echo} "DEBUG: " "$@" + ${echo} "INFO: " "$@" 1>&2 } #.............................................................................