summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-07-03 08:52:52 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-07-10 09:40:48 +1000
commit28ddd9285d8dc3273a3ef6bf0a4fc34af97c6546 (patch)
treed16bd3cc0f27803d77d4bbf598103e39f7336b0d
parent9d42bcf72b9a0a4699deb29e3781859a1e68017f (diff)
downloadxf86-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-xrelease.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/release.sh b/release.sh
index c827fe1..2d6f1d4 100755
--- a/release.sh
+++ b/release.sh
@@ -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