diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-12-16 12:17:55 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-12-16 12:17:55 -0500 |
commit | 1f292d297e368a8dce0122736aa2d140a275caba (patch) | |
tree | ce4b065c4d9b78344bcece5cd185a7313a22a9ed /tools | |
parent | 11f4051fb3f630a92c2592cda59c5c9629b1e6c5 (diff) | |
download | vyos-cloud-init-1f292d297e368a8dce0122736aa2d140a275caba.tar.gz vyos-cloud-init-1f292d297e368a8dce0122736aa2d140a275caba.zip |
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.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/bddeb | 13 |
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##*/}"; } |