Skip to content
Snippets Groups Projects
Commit a2e9e861 authored by Julien Bonjean's avatar Julien Bonjean
Browse files

[#1785] Fixed changelog update

parent 964b8304
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# Author: Julien Bonjean (julien@bonjean.info) # Author: Julien Bonjean (julien@bonjean.info)
# #
# Creation Date: 2009-04-20 # Creation Date: 2009-04-20
# Last Modified: 2009-07-03 16:35:11 -0400 # Last Modified: 2009-07-03 16:47:28 -0400
##################################################### #####################################################
# #
...@@ -30,6 +30,9 @@ SCP_BASE="scp ${SSH_OPTIONS} -r -P 50001" ...@@ -30,6 +30,9 @@ SCP_BASE="scp ${SSH_OPTIONS} -r -P 50001"
# home directory # home directory
ROOT_DIR="/home/projects/sflphone" ROOT_DIR="/home/projects/sflphone"
# local hidden repository (only for changelog commit)
LOCAL_REPOSITORY=${ROOT_DIR}/.sflphone-repository
# gpg passphrase file # gpg passphrase file
GPG_FILE="${ROOT_DIR}/.gpg-sflphone" GPG_FILE="${ROOT_DIR}/.gpg-sflphone"
...@@ -240,26 +243,28 @@ if [ ${DO_PREPARE} ]; then ...@@ -240,26 +243,28 @@ if [ ${DO_PREPARE} ]; then
fi fi
echo "Version is : ${VERSION}" echo "Version is : ${VERSION}"
# if push is activated # generate the changelog, according to the distribution and the git commit messages
if [ ${DO_PUSH} ];then echo "Update debian changelogs"
cd ${REPOSITORY_DIR}
# first changelog generation for commit ${SCRIPTS_DIR}/sfl-git-dch.sh ${VERSION} ${RELEASE_MODE}
echo "Update debian changelogs (1/2)"
if [ "$?" -ne "0" ]; then
${SCRIPTS_DIR}/sfl-git-dch.sh ${VERSION} ${RELEASE_MODE} echo "!! Cannot update debian changelogs"
exit -1
fi
if [ "$?" -ne "0" ]; then # if push is activated
echo "!! Cannot update debian changelogs" if [ ${DO_PUSH} && ${RELEASE_MODE} ];then
exit -1
fi
echo " Doing commit" echo " Doing commit"
cd ${REPOSITORY_DIR} cd ${LOCAL_REPOSITORY}
git commit -m "[#1262] Updated debian changelogs (${VERSION})" . git commit -m "[#1262] Updated debian changelogs (${VERSION})" .
echo " Pushing commit" echo " Pushing commit"
git push origin master git push origin master
cd -
fi fi
# change current branch if needed # change current branch if needed
...@@ -269,17 +274,7 @@ if [ ${DO_PREPARE} ]; then ...@@ -269,17 +274,7 @@ if [ ${DO_PREPARE} ]; then
else else
echo "Using master branch" echo "Using master branch"
fi fi
# generate the changelog, according to the distribution and the git commit messages
echo "Update debian changelogs (2/2)"
cd ${REPOSITORY_DIR}
${SCRIPTS_DIR}/sfl-git-dch.sh ${VERSION} ${RELEASE_MODE}
if [ "$?" -ne "0" ]; then
echo "!! Cannot update debian changelogs"
exit -1
fi
echo "Write version numbers for following processes" echo "Write version numbers for following processes"
echo "${VERSION}" > ${REPOSITORY_DIR}/sflphone-common/VERSION echo "${VERSION}" > ${REPOSITORY_DIR}/sflphone-common/VERSION
echo "${VERSION}" > ${REPOSITORY_DIR}/sflphone-client-gnome/VERSION echo "${VERSION}" > ${REPOSITORY_DIR}/sflphone-client-gnome/VERSION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment