[PATCH util-modular 3/4] release.sh: move fetching the section up so we can do stuff with it

Peter Hutterer peter.hutterer at who-t.net
Wed May 28 21:51:45 PDT 2014


This enables us to query the section earlier in the process, specifically
before assigning the tag name which comes in the next commit.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 release.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/release.sh b/release.sh
index a05b0c9..0c86c34 100755
--- a/release.sh
+++ b/release.sh
@@ -328,6 +328,13 @@ process_module() {
     remote_branch=`git config --get branch.$current_branch.merge | cut -d'/' -f3,4`
     echo "Info: working off the \"$current_branch\" branch tracking the remote \"$remote_name/$remote_branch\"."
 
+    # Obtain the section
+    get_section
+    if [ $? -ne 0 ]; then
+	cd $top_src
+	return 1
+    fi
+
     # Run 'make dist/distcheck' to ensure the tarball matches the git module content
     # Important to run make dist/distcheck before looking in Makefile, may need to reconfigure
     echo "Info: running \"make $MAKE_DIST_CMD\" to create tarballs:"
@@ -445,13 +452,6 @@ process_module() {
     list_xcb="xcb at lists.freedesktop.org"
     list_nouveau="nouveau at lists.freedesktop.org"
 
-    # Obtain the section
-    get_section
-    if [ $? -ne 0 ]; then
-	cd $top_src
-	return 1
-    fi
-
     # nouveau is very special.. sigh
     if [ x"$section" = xnouveau ]; then
             section=driver
-- 
1.9.3



More information about the xorg-devel mailing list