[build] Support for quiet tagging without editing the message.

This commit is contained in:
hackademix 2024-10-20 18:07:40 +02:00
parent 8aabc81818
commit 019cf8b432
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 6 additions and 3 deletions

View File

@ -24,9 +24,12 @@ VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/')
if [ "$1" == "tag" ]; then if [ "$1" == "tag" ]; then
# ensure nscl is up-to-date git-wise # ensure nscl is up-to-date git-wise
./nscl_gitsync.sh ./nscl_gitsync.sh
OPTS=""
if [ "$2" != "quiet" ]; then
OPTS="-e"
fi
echo "Tagging at $VER" 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" git push && git push origin "$VER"
exit 0 exit 0
fi fi
@ -202,7 +205,7 @@ fi
mv "$BUILD" "$CHROMIUM_UNPACKED" mv "$BUILD" "$CHROMIUM_UNPACKED"
if [ "$SIGNED" ]; then if [ "$SIGNED" ]; then
"$0" tag "$0" tag quiet
nscl nscl
../../we-publish "$XPI.xpi" ../../we-publish "$XPI.xpi"
fi fi