]> source.dussan.org Git - tigervnc.git/commitdiff
Added script to fetch rpm sources (requires curl)
authorBrian Hinz <bphinz@users.sourceforge.net>
Thu, 28 Nov 2013 17:31:19 +0000 (17:31 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Thu, 28 Nov 2013 17:31:19 +0000 (17:31 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5140 3789f03b-4d11-0410-bbf8-ca57d06f2519

contrib/packages/rpm/el5/fetch_sources.sh [new file with mode: 0644]
contrib/packages/rpm/el6/fetch_sources.sh [new file with mode: 0644]

diff --git a/contrib/packages/rpm/el5/fetch_sources.sh b/contrib/packages/rpm/el5/fetch_sources.sh
new file mode 100644 (file)
index 0000000..6f6d7b0
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+SPEC=$1
+
+SOURCES=`grep -i "^SOURCE\d\+\s*:\s*\([fht]\+tp://.*\)" ${SPEC} | sed -e 's/^.*:[[:space:]]//'`  
+for URL in ${SOURCES} ; do
+  curl -OL ${URL}
+done
+
diff --git a/contrib/packages/rpm/el6/fetch_sources.sh b/contrib/packages/rpm/el6/fetch_sources.sh
new file mode 100644 (file)
index 0000000..6f6d7b0
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+SPEC=$1
+
+SOURCES=`grep -i "^SOURCE\d\+\s*:\s*\([fht]\+tp://.*\)" ${SPEC} | sed -e 's/^.*:[[:space:]]//'`  
+for URL in ${SOURCES} ; do
+  curl -OL ${URL}
+done
+