Skip to content

Commit 55d477d

Browse files
committed
Added bump command to build.sh.
1 parent 20f8066 commit 55d477d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ BUILD="$BASE/build"
55
MANIFEST_IN="$SRC/manifest.json"
66
MANIFEST_OUT="$BUILD/manifest.json"
77

8-
VER=$(grep '"version":' "$SRC/manifest.json" | sed -re 's/.*": "(.*?)".*/\1/')
8+
VER=$(grep '"version":' "$MANIFEST_IN" | sed -re 's/.*": "(.*?)".*/\1/')
99
if [ "$1" == "tag" ]; then
1010
echo "Tagging at $VER"
1111
git tag -a "$VER" && git push origin "$VER"
1212
exit 0
1313
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
1420
XPI_DIR="$BASE/xpi"
1521
XPI="$XPI_DIR/noscript-$VER"
1622
LIB="$SRC/lib"

0 commit comments

Comments
 (0)