From 7f9c44bbc8ead909e8f14f0c3a7b8c4112c5dc15 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 8 Jul 2005 12:21:13 +0000 Subject: [PATCH] Get version number from changelog if it isn't explicitly specified. --- baztag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")" -- 2.30.2