We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20f8066 commit 55d477dCopy full SHA for 55d477d
1 file changed
build.sh
@@ -5,12 +5,18 @@ BUILD="$BASE/build"
5
MANIFEST_IN="$SRC/manifest.json"
6
MANIFEST_OUT="$BUILD/manifest.json"
7
8
-VER=$(grep '"version":' "$SRC/manifest.json" | sed -re 's/.*": "(.*?)".*/\1/')
+VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/')
9
if [ "$1" == "tag" ]; then
10
echo "Tagging at $VER"
11
git tag -a "$VER" && git push origin "$VER"
12
exit 0
13
fi
14
+if [ "$1" == "bump" ]; then
15
+ echo "Bumping to $VER"
16
+ git add "$MANIFEST_IN"
17
+ git commit -m "Version bump: $VER."
18
+ exit 0
19
+fi
20
XPI_DIR="$BASE/xpi"
21
XPI="$XPI_DIR/noscript-$VER"
22
LIB="$SRC/lib"
0 commit comments