From: Colin Watson Date: Fri, 8 Jul 2005 12:21:13 +0000 (+0000) Subject: Get version number from changelog if it isn't explicitly specified. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=7f9c44bbc8ead909e8f14f0c3a7b8c4112c5dc15 Get version number from changelog if it isn't explicitly specified. --- 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")"