TT#32751 Download only specified MR netscript

Release parameter can be passed to 'make' command as
% make all RELEASE=mr6.1.1
and only this version of 'netscript' will be downloaded.

If 'RELEASE' isn't passed - use 'trunk'

Change-Id: I7fd635a47a7793fd9915d25869644e9ed69fa13a
changes/59/19859/1
Mykola Malkov 7 years ago
parent cc89b646f1
commit abd62514fd

@ -1,13 +1,16 @@
# for syntax checks
BASH_SCRIPTS = ./templates/scripts/main.sh ./templates/scripts/includes/* ./build_iso.sh ./build_templates.sh
RELEASE ?= trunk
all: build
build:
@echo -n "Downloading deployment.sh scripts"; \
wget -r --directory-prefix=./templates/scripts/includes/netscript/ --reject "index.html*" \
--no-parent --no-host-directories --cut-dirs=1 "http://deb.sipwise.com/netscript/" ; \
--no-parent --no-host-directories --cut-dirs=1 "http://deb.sipwise.com/netscript/${RELEASE}/" ; \
echo " done.";
@echo -n "Downloading Sipwise keyring 'sipwise.gpg'"; \
wget -O ./templates/scripts/includes/sipwise.gpg https://deb.sipwise.com/spce/sipwise.gpg ;\
echo " done.";
@ -32,5 +35,7 @@ clean:
dist-clean: clean
rm -rf artifacts
rm -f *.iso
rm -f *.iso.sha1
.PHONY: clean dist-clean syntaxcheck build all

Loading…
Cancel
Save