Skip to content

Commit

Permalink
pick up version from config if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Sep 14, 2018
1 parent 01e9485 commit 39898ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions make_changelog.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "Please enter a release version"
exit
echo "Inferring version name from config.xml"
APPVER=`cat config.xml | grep "widget " | sed 's/.* version=\"\([^\"]*\)\" xmlns.*/\1/'`
else
APPVER=$1
fi

orig=$1
VER="${orig/v/}"
VER="${APPVER/v/}"
read -p "Future release is v${VER}. Please press any key to confirm..."
#github_changelog_generator -u pliablepixels -p zmNinja --future-release v${VER}
github_changelog_generator --future-release v${VER}

0 comments on commit 39898ab

Please sign in to comment.