Added "tag" command to build.sh.
This commit is contained in:
parent
0ad5f95eb4
commit
8b183f9c70
5
build.sh
5
build.sh
|
@ -6,6 +6,11 @@ MANIFEST_IN="$SRC/manifest.json"
|
||||||
MANIFEST_OUT="$BUILD/manifest.json"
|
MANIFEST_OUT="$BUILD/manifest.json"
|
||||||
|
|
||||||
VER=$(grep '"version":' "$SRC/manifest.json" | sed -re 's/.*": "(.*?)".*/\1/')
|
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_DIR="$BASE/xpi"
|
||||||
XPI="$XPI_DIR/noscript-$VER"
|
XPI="$XPI_DIR/noscript-$VER"
|
||||||
LIB="$SRC/lib"
|
LIB="$SRC/lib"
|
||||||
|
|
Loading…
Reference in New Issue