diff options
-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 + |