From d84de2433c5650331a1dce993386128d73cb1b89 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 19 Apr 2021 00:41:26 +0100 Subject: [PATCH] make-release: Print commands we run due to --real Signed-off-by: Ian Jackson --- make-release | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make-release b/make-release index 9059eb72..893cc856 100755 --- a/make-release +++ b/make-release @@ -15,7 +15,7 @@ dryrun=x-dry-run-unset cargo_dryrun=--not-a-cargo-option-please-crash case "$#.$1" in -2.--real) dryrun='' ; cargo_dryrun='' ; ;; +2.--real) dryrun=x ; cargo_dryrun='' ; ;; 2.--dry-run) dryrun=dryrun; cargo_dryrun='--dry-run'; ;; *) fail "bad usage" ;; esac @@ -25,6 +25,7 @@ keyid=0x559AE46C2D6B6D3265E7CBA1E3E3392348B50D39 branch="$2" dryrun () { echo "WOULD $*"; } +x () { echo >&2 "+ $*"; "$@"; } trouble=false trouble () { echo >&2 "***TROUBLE***: $*"; trouble=true; } -- 2.30.2