X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=blobdiff_plain;ds=sidebyside;f=baztag;h=5ddb42fe935ed4be0262b015763a69404f45307c;hb=daa61cc1db4ce5df90a0cfc18d22005d02d9f8c8;hp=249f61af11b253a0ef01b991a35e50e20ba67fa3;hpb=9d47b500450089aa57eb7f5df4047220c8b78a3c;p=bin.git diff --git a/baztag b/baztag index 249f61a..5ddb42f 100755 --- a/baztag +++ b/baztag @@ -30,9 +30,9 @@ while :; do done if [ $# -eq 0 ]; then - usage >&2 - exit 1 + VERSION="$(dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)" +else + VERSION="$1" fi -VERSION="$1" $NOACT baz branch "$(bazpath)" "$(bazpath "releases--$VERSION")"