Added bump command to build.sh.
This commit is contained in:
parent
20f80666fe
commit
55d477dd5c
8
build.sh
8
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"
|
||||
|
|
Loading…
Reference in New Issue