From e2588638c1914d6907709bf99be4823622d5be63 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Sep 2016 08:53:30 +0200 Subject: Add BUILD2_REPO envvar to build scripts --- build-msvc.bat | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'build-msvc.bat') diff --git a/build-msvc.bat b/build-msvc.bat index 88eebe7..b56be54 100644 --- a/build-msvc.bat +++ b/build-msvc.bat @@ -29,6 +29,13 @@ set "owd=%CD%" if "_%1_" == "_/?_" goto usage +rem Package repository URL (or path). +rem +if "_%BUILD2_REPO%_" == "__" ( +set "BUILD2_REPO=https://stage.build2.org/1" +rem set "BUILD2_REPO=https://pkg.cppget.org/1/alpha" +) + rem Installation directory. rem if "_%1_" == "__" ( @@ -124,8 +131,7 @@ bpkg-stage create^ config.install.root=%idir% @if errorlevel 1 goto error -@rem @@ TMP: queue -bpkg-stage add https://pkg.cppget.org/1/queue +bpkg-stage add %BUILD2_REPO% @if errorlevel 1 goto error bpkg-stage fetch -- cgit v1.1