From 8b183f9c7061245048c61af69aa76607388ddc2e Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 7 Jul 2018 03:02:40 +0200 Subject: Added "tag" command to build.sh. --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index ea1c8da..2ddd6a2 100644 --- a/build.sh +++ b/build.sh @@ -6,6 +6,11 @@ MANIFEST_IN="$SRC/manifest.json" MANIFEST_OUT="$BUILD/manifest.json" VER=$(grep '"version":' "$SRC/manifest.json" | sed -re 's/.*": "(.*?)".*/\1/') +if [ "$1" == "tag" ]; then + echo "Tagging at $VER" + git tag -a "$VER" && git push origin "$VER" + exit 0 +fi XPI_DIR="$BASE/xpi" XPI="$XPI_DIR/noscript-$VER" LIB="$SRC/lib" -- cgit v1.2.3