summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/bddeb6
1 files changed, 3 insertions, 3 deletions
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"