diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2013-11-28 17:31:19 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2013-11-28 17:31:19 +0000 |
commit | 0ee4e5cbebb241d4c45ca9e70844b573cacdf574 (patch) | |
tree | 63a1cda0fbdd700ccc311fe824d5baf11a632a91 | |
parent | 1ff04d1b8a7b8358b8d3ffcf28b57ade52241058 (diff) | |
download | tigervnc-0ee4e5cbebb241d4c45ca9e70844b573cacdf574.tar.gz tigervnc-0ee4e5cbebb241d4c45ca9e70844b573cacdf574.zip |
Added script to fetch rpm sources (requires curl)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5140 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | contrib/packages/rpm/el5/fetch_sources.sh | 9 | ||||
-rw-r--r-- | contrib/packages/rpm/el6/fetch_sources.sh | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/contrib/packages/rpm/el5/fetch_sources.sh b/contrib/packages/rpm/el5/fetch_sources.sh new file mode 100644 index 00000000..6f6d7b0f --- /dev/null +++ b/contrib/packages/rpm/el5/fetch_sources.sh @@ -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 index 00000000..6f6d7b0f --- /dev/null +++ b/contrib/packages/rpm/el6/fetch_sources.sh @@ -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 + |