[PATCH util-modular 07/10] release.sh: factorise host_protocol in preparation for mesa's ftp

Emil Velikov emil.l.velikov at gmail.com
Fri Jul 1 14:44:48 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 release.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/release.sh b/release.sh
index 7b8528b..6a72302 100755
--- a/release.sh
+++ b/release.sh
@@ -103,11 +103,11 @@ RELEASE
 
     for tarball in $tarbz2 $targz $tarxz; do
 	cat <<RELEASE
-http://$host_current/$section_path/$tarball
+${host_protocol}://$host_current/$section_path/$tarball
 MD5:  `$MD5SUM $tarball`
 SHA1: `$SHA1SUM $tarball`
 SHA256: `$SHA256SUM $tarball`
-PGP:  http://${host_current}/${section_path}/${tarball}.sig
+PGP:  ${host_protocol}://${host_current}/${section_path}/${tarball}.sig
 
 RELEASE
     done
@@ -499,6 +499,9 @@ process_module() {
     # The hostname which is used to connect to the development resources
     hostname="annarchy.freedesktop.org"
 
+    # Some projects do not use http.
+    host_protocol="http"
+
     # Some hostnames are also used as /srv subdirs
     host_fdo="www.freedesktop.org"
     host_xorg="xorg.freedesktop.org"
-- 
2.8.2



More information about the xorg-devel mailing list