diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..9b4375d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,16 @@ +## 0.0.3 (2016-08-04) + - c23b512b808fda4c2cc9edf9f618061a553c61a6 2016-08-04 | If our changelog is missing, create one? (HEAD -> release-0.0.3, develop) [Ismo Vuorinen] + - e4f313a05698acdb55ec30538eab0477b26c0063 2016-08-04 | Add missing changelog file [Ismo Vuorinen] + - f25536b8a18cb4b46af53623b3ba89787ae7df7d 2016-08-04 | Merge branch 'release-0.0.2' (tag: 0.0.2, master) [Ismo Vuorinen] + - dd0341cb923241bca5e02d4b4d1a894708cf804b 2016-08-04 | Merge branch 'release-0.0.2' into develop [Ismo Vuorinen] + - f711b92ba293b4cb6e983d0b0cd8f2a76352c428 2016-08-04 | Merge branch 'release-0.0.1' (tag: 0.0.1) [Ismo Vuorinen] + +## 0.0.2 (2016-08-04) + - f711b92ba293b4cb6e983d0b0cd8f2a76352c428 2016-08-04 | Merge branch 'release-0.0.1' (tag: 0.0.1, master) [Ismo Vuorinen] + - 997beeebb0ba05c60590ecf96cb18fc1e58a336a 2016-08-04 | Merge branch 'release-0.0.1' into develop (HEAD -> release-0.0.2, develop) [Ismo Vuorinen] + +## 0.0.1 (Elokuu 04, 2016) + - Uncomment rest of the script + - Remove "-f" force option, keeping it simple + - Add our empty VERSION file to generate another commit + - First commit to get things rolling diff --git a/VERSION b/VERSION index 4e379d2..bcab45a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.2 +0.0.3 diff --git a/release.sh b/release.sh index 5e909f5..9aafae8 100755 --- a/release.sh +++ b/release.sh @@ -58,6 +58,18 @@ if [ ! -f $FILE_VERSION ]; then fi fi +# Do we have a file with our changes? +if [ ! -f $FILE_CHANGELOG ]; then + echo -ne "${QUESTION_FLAG} ${CYAN}Can't find changelog file (${FILE_CHANGELOG}), create one?" + + read RESPONSE + if [[ $RESPONSE =~ [yY](es)* ]] || [ "$RESPONSE" = "" ]; then + echo "" > $FILE_CHANGELOG + else + exit 1 + fi +fi + # Continue to guess new value for our version BASE_STRING=`cat $FILE_VERSION`