From 25403168cea7b0ece56bc98a0b3ed05043182c91 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 20 Jun 2012 16:24:24 -0400 Subject: update tools/bddeb and debian.trunk packaging * debian.trunk/changelog: increase debian version to '1' to avoid lintian error * debian.trunk/control: bump standards version * debian.trunk/rules: remove cloud-init-run-module symlink (been deprecated for some time) * tools/bddeb: read version from ChangeLog rather than setup.py --- tools/bddeb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/bddeb b/tools/bddeb index 598f71bb..b162b06f 100755 --- a/tools/bddeb +++ b/tools/bddeb @@ -8,8 +8,8 @@ set -e trap "rm -Rf '${TEMP_D}'" exit files=$(bzr ls --versioned) revno=$(bzr revno) -version=$(awk \ - -F= '$1 ~ /version$/ { gsub("[^0-9.]","",$2); print $2; }' setup.py) +version=$(awk -F: \ + '$1 ~ /[0-9][.][0-9]+[.][0-9]+/ { print $1 ; exit(0); }' ChangeLog ) mkdir "${TEMP_D}/cloud-init" otar="$TEMP_D/cloud-init_$version~bzr${revno}.orig.tar.gz" tar -czf - ${files} > "$otar" @@ -25,7 +25,7 @@ debuild "$@" #for x in ../*.deb; do # echo wrote ${x##*/} #done -debname="cloud-init_${version}~bzr${revno}-0_all.deb" +debname="cloud-init_${version}~bzr${revno}-1_all.deb" mv "../$debname" "$start" link="$start/cloud-init_all.deb" echo "wrote $debname" -- cgit v1.2.3