summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/bddeb13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/bddeb b/tools/bddeb
index 53ac9706..598f71bb 100755
--- a/tools/bddeb
+++ b/tools/bddeb
@@ -22,7 +22,12 @@ sed -i -e "s,VERSION,$version," -e "s,REVNO,bzr$revno," \
"$TEMP_D/cloud-init/debian/changelog"
cd "${TEMP_D}/cloud-init"
debuild "$@"
-for x in ../*.deb; do
- echo wrote ${x##*/}
-done
-mv ../*.deb "${start}"
+#for x in ../*.deb; do
+# echo wrote ${x##*/}
+#done
+debname="cloud-init_${version}~bzr${revno}-0_all.deb"
+mv "../$debname" "$start"
+link="$start/cloud-init_all.deb"
+echo "wrote $debname"
+[ ! -e "$link" -o -L "$link" ]
+ { ln -sf "$debname" "$link" && echo "linked ${link##*/}"; }