From 22caecd78d778a8b8d9bbda0aacbec4be58e6b97 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 18 Jun 2010 08:13:34 +1000 Subject: [PATCH] release.sh: split tarball checking from tag/section checking. Print out a more meaningful message than "incorrect parameters" if the tarballs weren't found. Signed-off-by: Peter Hutterer --- release.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index 268a696..ea4d9c9 100755 --- a/release.sh +++ b/release.sh @@ -185,10 +185,15 @@ announce="$tarball_dir/$modulever.announce" echo "checking parameters" if ! [ -f "$tarball_dir/$tarbz2" ] || - ! [ -f "$tarball_dir/$targz" ] || - [ -z "$tag_previous" ] || - [ -z "$section" ]; then - echo "error: incorrect parameters!" + ! [ -f "$tarball_dir/$targz" ]; then + echo "error: tarballs not found. Did you run make dist?" + usage + exit 1 +fi + +if [ -z "$tag_previous" ] || + [ -z "$section" ]; then + echo "error: previous tag or section not found." usage exit 1 fi -- 2.11.4.GIT