[PATCH] try to make release.sh support version-only tags.

Eric Anholt eric at anholt.net
Tue Feb 24 14:54:45 PST 2009


We're sick of typing xf86-video-intel-whatever in the Intel driver, but the
script doesn't like our tags.  This change nearly fixes that, but errors out
and hasn't been tested for module-version tags.  Perhaps someone else could
clean it up.
---
 release.sh |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/release.sh b/release.sh
index 73e8c7f..0383a12 100755
--- a/release.sh
+++ b/release.sh
@@ -102,10 +102,20 @@ done
 
 tarball_dir="$(dirname $(find . -name config.status))"
 module="${tag_current%-*}"
-version="${tag_current##*-}"
-tarbz2="$tag_current.tar.bz2"
-targz="$tag_current.tar.gz"
-announce="$tarball_dir/$tag_current.announce"
+if [ "x$module" = "x$tag_current" ]; then
+    # version-number-only tag.
+    pwd=`pwd`
+    module=`basename $pwd`
+    version="$tag_current"
+else
+    # module-and-version style tag
+    version="${tag_current##*-}"
+fi
+
+modulever=$module-$version
+tarbz2="$modulever.tar.bz2"
+targz="$modulever.tar.gz"
+announce="$tarball_dir/$modulever.announce"
 
 echo "checking parameters"
 if ! [ -f "$tarball_dir/$tarbz2" ] ||
-- 
1.5.6.5




More information about the xorg mailing list