From abd62514fdc24eab35adb284e0724605f7ca2eda Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Mon, 19 Mar 2018 17:19:56 +0100 Subject: [PATCH] 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 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index be87f77..a746d82 100644 --- a/Makefile +++ b/Makefile @@ -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