summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-06-20 16:24:24 -0400
committerScott Moser <smoser@ubuntu.com>2012-06-20 16:24:24 -0400
commit25403168cea7b0ece56bc98a0b3ed05043182c91 (patch)
tree502141445529815e1aceb625444d101d9b9c5fd1 /tools
parenteeb7328ddb83e26b1163d2d40590498a971397c5 (diff)
downloadvyos-cloud-init-25403168cea7b0ece56bc98a0b3ed05043182c91.tar.gz
vyos-cloud-init-25403168cea7b0ece56bc98a0b3ed05043182c91.zip
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
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"