summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorhackademix2018-07-08 14:05:04 +0200
committerhackademix2018-07-08 14:05:04 +0200
commit55d477dd5c33bb6623b2195c7c8a77ed07f7dce0 (patch)
tree684ae910626d863590ed6d84f6d9754146efbcd5 /build.sh
parent20f80666fe020df73952d597b6847c9b31e222a1 (diff)
downloadnoscript-55d477dd5c33bb6623b2195c7c8a77ed07f7dce0.tar.gz
noscript-55d477dd5c33bb6623b2195c7c8a77ed07f7dce0.tar.xz
noscript-55d477dd5c33bb6623b2195c7c8a77ed07f7dce0.zip
Added bump command to build.sh.
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 2ddd6a2..de5ea0c 100644
--- a/build.sh
+++ b/build.sh
@@ -5,12 +5,18 @@ BUILD="$BASE/build"
MANIFEST_IN="$SRC/manifest.json"
MANIFEST_OUT="$BUILD/manifest.json"
-VER=$(grep '"version":' "$SRC/manifest.json" | sed -re 's/.*": "(.*?)".*/\1/')
+VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/')
if [ "$1" == "tag" ]; then
echo "Tagging at $VER"
git tag -a "$VER" && git push origin "$VER"
exit 0
fi
+if [ "$1" == "bump" ]; then
+ echo "Bumping to $VER"
+ git add "$MANIFEST_IN"
+ git commit -m "Version bump: $VER."
+ exit 0
+fi
XPI_DIR="$BASE/xpi"
XPI="$XPI_DIR/noscript-$VER"
LIB="$SRC/lib"