summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2018-07-07 03:02:40 +0200
committerhackademix2018-07-07 03:02:40 +0200
commit8b183f9c7061245048c61af69aa76607388ddc2e (patch)
tree06e0e83ea691a31bb6a790c4cbbdd65c731ae6bf
parent0ad5f95eb479f8450058333541631640fc8ee4bb (diff)
downloadnoscript-8b183f9c7061245048c61af69aa76607388ddc2e.tar.gz
noscript-8b183f9c7061245048c61af69aa76607388ddc2e.tar.xz
noscript-8b183f9c7061245048c61af69aa76607388ddc2e.zip
Added "tag" command to build.sh.
-rw-r--r--build.sh5
1 files changed, 5 insertions, 0 deletions
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"