aboutsummaryrefslogtreecommitdiff
path: root/build.sh
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.sh
parentabf3c146b4b90d63e1348b214f919eac2b92bc5e (diff)
Add BUILD2_REPO envvar to build scripts
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index df5b1e5..7b267c9 100755
--- a/build.sh
+++ b/build.sh
@@ -11,6 +11,13 @@
usage="Usage: $0 [-h] [--install-dir <dir>] [--sudo <prog>] <cxx>"
+# Package repository URL (or path).
+#
+if test -z "$BUILD2_REPO"; then
+ BUILD2_REPO="https://stage.build2.org/1"
+# BUILD2_REPO="https://pkg.cppget.org/1/alpha"
+fi
+
diag ()
{
echo "$*" 1>&2
@@ -146,8 +153,7 @@ config.bin.rpath="$idir/lib" \
config.install.root="$idir" \
config.install.sudo="$sudo"
-#@@ TMP: queue
-run bpkg-stage add https://pkg.cppget.org/1/queue
+run bpkg-stage add "$BUILD2_REPO"
run bpkg-stage fetch
run bpkg-stage build --yes build2 bpkg
run bpkg-stage install build2 bpkg