8 Commits
0.0.1 ... 0.0.3

Author SHA1 Message Date
Ismo Vuorinen
f58d1c50dd Merge branch 'release-0.0.3' 2016-08-04 16:41:17 +03:00
Ismo Vuorinen
cfe7c1b525 Incrementing version number to 0.0.3 2016-08-04 16:41:17 +03:00
Ismo Vuorinen
c23b512b80 If our changelog is missing, create one? 2016-08-04 16:40:25 +03:00
Ismo Vuorinen
e4f313a056 Add missing changelog file 2016-08-04 16:39:44 +03:00
Ismo Vuorinen
f25536b8a1 Merge branch 'release-0.0.2' 2016-08-04 16:36:59 +03:00
Ismo Vuorinen
dd0341cb92 Merge branch 'release-0.0.2' into develop 2016-08-04 16:36:59 +03:00
Ismo Vuorinen
252e031286 Incrementing version number to 0.0.2 2016-08-04 16:36:59 +03:00
Ismo Vuorinen
997beeebb0 Merge branch 'release-0.0.1' into develop 2016-08-04 16:32:11 +03:00
3 changed files with 31 additions and 3 deletions

16
CHANGELOG.md Normal file
View File

@@ -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

View File

@@ -1 +1 @@
0.0.1
0.0.3

View File

@@ -12,7 +12,7 @@
FILE_VERSION="VERSION"
FILE_CHANGELOG="CHANGELOG.md"
NOW="$(date +'%B %d, %Y')"
NOW="$(date +'%Y-%m-%d')"
RED="\033[1;31m"
GREEN="\033[0;32m"
YELLOW="\033[1;33m"
@@ -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`
@@ -99,7 +111,7 @@ echo $NEW_VERSION > $FILE_VERSION
# Create our changelog
echo "## $NEW_VERSION ($NOW)" > tmpfile
git log --pretty=format:" - %s" "$BASE_STRING"...HEAD >> tmpfile
git log --pretty=format:" - %H %ad | %s%d [%an]" --date=short "$BASE_STRING"...HEAD >> tmpfile
echo "" >> tmpfile
echo "" >> tmpfile
cat $FILE_CHANGELOG >> tmpfile