aboutsummaryrefslogtreecommitdiff
path: root/build-msvc.bat
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-01 08:53:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-01 08:53:30 +0200
commite2588638c1914d6907709bf99be4823622d5be63 (patch)
tree045d69b9f51af7985bc472b31c13c38fea784001 /build-msvc.bat
parentabf3c146b4b90d63e1348b214f919eac2b92bc5e (diff)
Add BUILD2_REPO envvar to build scripts
Diffstat (limited to 'build-msvc.bat')
-rw-r--r--build-msvc.bat10
1 files changed, 8 insertions, 2 deletions
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