summaryrefslogtreecommitdiff
path: root/mk/fetch.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-01-03 16:24:45 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-01-03 16:24:45 +0100
commit7c49ec073b4edbe32867d1d395fd3cf9c7bffda7 (patch)
treed9e89bda88dd86c7e0266efdfdc2344c6613e91a /mk/fetch.mk
parent1bf8ef30bfa79bd0816fd97f3d1b31f7950d3c4e (diff)
convert to git downloader. allow to choose which version of the bootloader.
Diffstat (limited to 'mk/fetch.mk')
-rw-r--r--mk/fetch.mk22
1 files changed, 11 insertions, 11 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index b6637ba0e..9a4eb1d8c 100644
--- a/mk/fetch.mk
+++ b/mk/fetch.mk
@@ -62,17 +62,7 @@ $(1):
mkdir -p "$$$${fullname%%/$$$$filename}"; \
cd "$$$${fullname%%/$$$$filename}"; \
for url in "${PKG_SITES}"; do case $$$$url in \
- http://*|https://*|ftp://*) \
- for site in $${PKG_SITES} $${MASTER_SITE_BACKUP}; do \
- : echo "$${FETCH_CMD} $$$$site$$$$filename"; \
- rm -f "$$$$filename"; \
- if $${FETCH_CMD} $$$$site$$$$filename; then \
- : check the size here; \
- [[ ! -e $$$$filename ]] || exit 0; \
- fi; \
- done; \
- ;; \
- git://*) \
+ git://*|*.git) \
rm -rf $${PKG_NAME}-$${PKG_VERSION}; \
git clone $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \
if [ $$$$(echo $${PKG_VERSION}|wc -c) -eq 41 ]; then \
@@ -89,6 +79,16 @@ $(1):
: check the size here; \
[[ ! -e $$$$filename ]] || exit 0; \
;; \
+ http://*|https://*|ftp://*) \
+ for site in $${PKG_SITES} $${MASTER_SITE_BACKUP}; do \
+ : echo "$${FETCH_CMD} $$$$site$$$$filename"; \
+ rm -f "$$$$filename"; \
+ if $${FETCH_CMD} $$$$site$$$$filename; then \
+ : check the size here; \
+ [[ ! -e $$$$filename ]] || exit 0; \
+ fi; \
+ done; \
+ ;; \
*) \
echo url schema not known; \
false ;; \