From: Ian Jackson Date: Sun, 18 Apr 2021 23:41:26 +0000 (+0100) Subject: make-release: Print commands we run due to --real X-Git-Tag: otter-0.5.1~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d84de2433c5650331a1dce993386128d73cb1b89;p=otter.git make-release: Print commands we run due to --real Signed-off-by: Ian Jackson --- 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; }