From c23b512b808fda4c2cc9edf9f618061a553c61a6 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 4 Aug 2016 16:40:25 +0300 Subject: [PATCH] If our changelog is missing, create one? --- release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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`