Skip to content

Commit

Permalink
tag guess
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Nov 24, 2018
1 parent 153554e commit 0f2c93a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions make_tag.sh
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

0 comments on commit 0f2c93a

Please sign in to comment.