summaryrefslogtreecommitdiff
path: root/mk/fetch.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <w.brodkorb@deubert.it>2016-03-01 20:36:55 +0100
committerWaldemar Brodkorb <w.brodkorb@deubert.it>2016-03-01 20:36:55 +0100
commit202002ab522f579af76fcbe787255e67ed070dc5 (patch)
tree06035c8403c7005bfc3f5e55d5aa4a5a8368c559 /mk/fetch.mk
parenteb78350ce3b4682f0e2b2f92731ad0e2d7af6342 (diff)
use git head, when PKG_GIT not set
Diffstat (limited to 'mk/fetch.mk')
-rw-r--r--mk/fetch.mk19
1 files changed, 8 insertions, 11 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index edfc208de..f7a6d13d1 100644
--- a/mk/fetch.mk
+++ b/mk/fetch.mk
@@ -65,29 +65,26 @@ $(1):
git://*|*.git) \
rm -rf $${PKG_NAME}-$${PKG_VERSION}; \
if [ ! -z "$${PKG_GIT}" ]; then \
- case "$${PKG_GIT}" in \
- tag|branch) \
+ case "$${PKG_GIT}" in \
+ tag|branch) \
echo "Using git tag/branch: $${PKG_VERSION}"; \
git clone --depth 1 --branch $${PKG_VERSION} $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \
;; \
- hash) \
+ hash) \
echo "Using git hash: $${PKG_VERSION}"; \
git clone $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \
(cd $${PKG_NAME}-$${PKG_VERSION}; git checkout $(GITOPTS) $${PKG_VERSION}); \
;; \
- head) \
- echo "Using git head"; \
- git clone $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \
- ;; \
- esac ;\
+ esac ;\
+ else \
+ echo "Using git head"; \
+ git clone $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \
+ fi; \
tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
touch $$$${filename}.nohash; \
rm -rf $${PKG_NAME}-$${PKG_VERSION}; \
: check the size here; \
[[ ! -e $$$$filename ]] || exit 0; \
- else \
- echo "PKG_GIT is missing" ;\
- fi; \
;; \
http://*|https://*|ftp://*) \
for site in $${PKG_SITES} $${MASTER_SITE_BACKUP}; do \