From 65ca47e2bf0f1c1cbf57a3ffe85997eface78c6f Mon Sep 17 00:00:00 2001 From: Anirudha Bose Date: Sun, 18 May 2014 04:17:12 +0530 Subject: [PATCH] Generate debian/changelog according to the checked out repo of Cling --- tools/packaging/debian/debianize.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/packaging/debian/debianize.sh b/tools/packaging/debian/debianize.sh index 5fec6cf0..12658f7d 100755 --- a/tools/packaging/debian/debianize.sh +++ b/tools/packaging/debian/debianize.sh @@ -81,10 +81,10 @@ function set_version { VERSION=$(cat ${CLING_SRC_DIR}/VERSION) # If development release, then add revision to the version - REVISION=$(git log -n 1 --pretty=format:"%H" | cut -c1-7) + REVISION=$(git log -n 1 --pretty=format:"%H") echo "${VERSION}" | grep -qE "dev" if [ "${?}" = 0 ]; then - VERSION="${VERSION}"-"${REVISION}" + VERSION="${VERSION}"-"$(echo ${REVISION} | cut -c1-7)" fi } @@ -241,7 +241,7 @@ EOF echo "Old Changelog:" >> debian/changelog cd "${CLING_SRC_DIR}" - git log $(git rev-list HEAD) --format=" * %s%n%n -- %an <%ae> %cD%n%n" >> ${prefix}/debian/changelog + git log $(git rev-list ${REVISION}) --format=" * %s%n%n -- %an <%ae> %cD%n%n" >> ${prefix}/debian/changelog cd - # Create Debian package