chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
814cb89
)
Get version number from changelog if it isn't explicitly specified.
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Fri, 8 Jul 2005 12:21:13 +0000
(12:21 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Fri, 8 Jul 2005 12:21:13 +0000
(12:21 +0000)
baztag
patch
|
blob
|
history
diff --git
a/baztag
b/baztag
index 249f61af11b253a0ef01b991a35e50e20ba67fa3..5ddb42fe935ed4be0262b015763a69404f45307c 100755
(executable)
--- 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")"