Fix generate-deb-changelog to handle YY.MM release 03/1603/2
authorEd Warnicke <[email protected]>
Thu, 16 Jun 2016 04:17:07 +0000 (23:17 -0500)
committerChris Luke <[email protected]>
Fri, 17 Jun 2016 03:13:59 +0000 (03:13 +0000)
generate-deb-changelog was only properly handling x.y.z
releases.  This patch fixes it to handle YY.MM.

Change-Id: Iaaee8ff747abd6754d021535c889f67ad2c9998f
Signed-off-by: Ed Warnicke <[email protected]>
(cherry picked from commit 693f4358deef7db06b3d3cae0d881924dd9cf9fa)

build-root/scripts/generate-deb-changelog

index a143431..7bdc633 100755 (executable)
@@ -30,7 +30,7 @@ if [ -n "${ADDS}" ]; then
        print_changelog_item
 fi
 
-for TAG in $(git tag -l 'v[0-9].[0-9].[0-9]' | sort -r ); do
+for TAG in $(git tag -l 'v[0-9][0-9].[0-9][0-9]' | sort -r ); do
        VER=$(echo ${TAG}| sed -e 's/^v//')
        DESC=$(git tag -l -n20 ${TAG} | tail -n+2 | sed -e 's/^ */  /')
        print_changelog_item