From 019cf8b4322f579682fb9e3411770ce462afaf2f Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 20 Oct 2024 18:07:40 +0200 Subject: [PATCH] [build] Support for quiet tagging without editing the message. --- build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 3daa78c..81a43f9 100644 --- a/build.sh +++ b/build.sh @@ -24,9 +24,12 @@ VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/') if [ "$1" == "tag" ]; then # ensure nscl is up-to-date git-wise ./nscl_gitsync.sh - + OPTS="" + if [ "$2" != "quiet" ]; then + OPTS="-e" + fi echo "Tagging at $VER" - git tag -a "$VER" -e -m"$(gitcl 2>/dev/null)" + git tag -a "$VER" $OPTS -m"$(gitcl 2>/dev/null)" git push && git push origin "$VER" exit 0 fi @@ -202,7 +205,7 @@ fi mv "$BUILD" "$CHROMIUM_UNPACKED" if [ "$SIGNED" ]; then - "$0" tag + "$0" tag quiet nscl ../../we-publish "$XPI.xpi" fi