From 1f292d297e368a8dce0122736aa2d140a275caba Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 16 Dec 2011 12:17:55 -0500 Subject: tools/bddeb: add a symlink to created deb this just adds a cloud-init_all.deb symlink to the deb that is created so its easier to scp it elsewhere after you build it. --- tools/bddeb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tools') 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##*/}"; } -- cgit v1.2.3