diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-07-03 08:52:52 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-07-10 09:40:48 +1000 |
commit | 28ddd9285d8dc3273a3ef6bf0a4fc34af97c6546 (patch) | |
tree | d16bd3cc0f27803d77d4bbf598103e39f7336b0d | |
parent | 9d42bcf72b9a0a4699deb29e3781859a1e68017f (diff) | |
download | xf86-input-wacom-28ddd9285d8dc3273a3ef6bf0a4fc34af97c6546.tar.gz |
release.sh: complain if tags are missing
Previously we only checked the previous tag, not the current one. Move the
check up a bit, make it more explicit.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
-rwxr-xr-x | release.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -111,6 +111,12 @@ while [ $# != 0 ]; do esac done +if [ -z "$tag_previous" ] || [ -z "$tag_current" ]; then + echo "error: missing previous or current tag" + usage + exit 1 +fi + # Check for uncommitted/queued changes. if [ "x$ignorechanges" != "x1" ]; then set +e @@ -168,8 +174,7 @@ tarbz2="$modulever.tar.bz2" announce="$tarball_dir/$modulever.announce" echo "checking parameters" -if ! [ -f "$tarball_dir/$tarbz2" ] || - [ -z "$tag_previous" ]; then +if ! [ -f "$tarball_dir/$tarbz2" ]; then echo "error: incorrect parameters!" usage exit 1 |