diff options
Diffstat (limited to 'contrib/packages/rpm/el6/SOURCES/fetch_sources.sh')
-rw-r--r-- | contrib/packages/rpm/el6/SOURCES/fetch_sources.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/packages/rpm/el6/SOURCES/fetch_sources.sh b/contrib/packages/rpm/el6/SOURCES/fetch_sources.sh new file mode 100644 index 00000000..6f6d7b0f --- /dev/null +++ b/contrib/packages/rpm/el6/SOURCES/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 + |