-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
153554e
commit 0f2c93a
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#!/bin/bash | ||
read -p "Please generate CHANGELOG and commit it BEFORE you tag. Press a key when ready..." | ||
orig=$1 | ||
VER="${orig/v/}" | ||
if [ -z "$1" ]; then | ||
echo "Inferring version name from config.xml" | ||
APPVER=`cat config.xml | grep "widget " | sed 's/.* version=\"\([^\"]*\)\" xmlns.*/\1/'` | ||
else | ||
APPVER=$1 | ||
fi | ||
VER="${APPVER/v/}" | ||
echo "Creating tag:v$VER" | ||
|
||
read -p "Please generate CHANGELOG and commit it BEFORE you tag. Press a key when ready..." | ||
read -p "Press any key to create the tag or Ctrl-C to break..." -n1 | ||
git tag -fa v$VER -m"v$VER" | ||
git push -f --tags |