[PATCH util/modular v2] release.sh: Add support for mesa-demos

Andreas Boll andreas.boll.dev at gmail.com
Fri Feb 23 14:13:47 UTC 2018


v2: Rebase on Mesa cleanup.
    Move demos into its own elif statement.

Signed-off-by: Andreas Boll <andreas.boll.dev at gmail.com>
---
Rebased on https://patchwork.freedesktop.org/patch/206466/

 release.sh | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/release.sh b/release.sh
index 99bd0c3..b2071b6 100755
--- a/release.sh
+++ b/release.sh
@@ -264,8 +264,10 @@ get_section() {
 	if [ $? -ne 0 ]; then
 	    echo "Error: unable to extract section from $module_url second field."
 	    return 1
-	elif [ x"$section" != xdrm ] && [ x"$section" != xmesa ]; then
-	    echo "Error: section $section is not supported, only libdrm and mesa are."
+	elif [ x"$section" != xdrm ] &&
+	     [ x"$section" != xmesa ] &&
+	     [ x"$section" != xdemos ]; then
+	    echo "Error: section $section is not supported, only libdrm, mesa and demos are."
 	    return 1
 	fi
     fi
@@ -588,6 +590,12 @@ process_module() {
         srv_path="/srv/$host_current/www/$section_path"
         list_to=$list_mesa_announce
         list_cc=$list_mesa_devel
+    elif [ x"$section" = xdemos ]; then
+        host_current=$host_mesa
+        section_path=archive/$section
+        srv_path="/srv/$host_current/www/$section_path"
+        list_to=$list_mesa_announce
+        list_cc=$list_mesa_devel
     fi
 
     # Module xkeyboard-config goes in a subdir of the xorg "data" section
-- 
2.11.0



More information about the xorg-devel mailing list