diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-06 11:30:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-06 11:30:02 +0200 |
commit | 1347d8b34b8675c8bb85aaf28b23e6bcbd121f2b (patch) | |
tree | dde6d4fed1289f33ad3ba723c744895ede6813ee /build.sh | |
parent | d2fbd1b0c7d11372b89ec7655dc80fa8b957d96c (diff) |
Minor updates to build scripts
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 37 |
1 files changed, 19 insertions, 18 deletions
@@ -4,11 +4,6 @@ # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -# @@ Should we add sys:sqlite by default? Or add option? -# @@ Need to note that script will ask for repository verification. -# @@ Perhaps a fingerprint to pass to fetch? Once repo is signed? -# @@ Option for alternative bpkg config dir? - usage="Usage: $0 [-h|--help] [<options>] <cxx>" # Package repository URL (or path). @@ -65,7 +60,7 @@ while test $# -ne 0; do diag diag "$0 --install-dir /opt/build2 --sudo sudo g++" diag - diag "See the INSTALL file for details." + diag "See the BOOTSTRAP-UNIX file for details." diag exit 0 ;; @@ -151,18 +146,6 @@ export PATH sys="$(build2/config.guess | sed -n 's/^[^-]*-[^-]*-\(.*\)$/\1/p')" -# Bootstrap, stage 1. -# -run cd build2 -run ./bootstrap.sh "$cxx" -run build2/b-boot --version - -# Bootstrap, stage 2. -# -run build2/b-boot config.cxx="$cxx" config.bin.lib=static -mv build2/b build2/b-boot -run build2/b-boot --version - case "$sys" in mingw32 | mingw64 | msys | msys2 | cygwin) conf_rpath="[null]" @@ -179,6 +162,18 @@ case "$sys" in ;; esac +# Bootstrap, stage 1. +# +run cd build2 +run ./bootstrap.sh "$cxx" +run build2/b-boot --version + +# Bootstrap, stage 2. +# +run build2/b-boot config.cxx="$cxx" config.bin.lib=static +mv build2/b build2/b-boot +run build2/b-boot --version + # Stage. # run cd .. @@ -194,6 +189,9 @@ config.install.sudo="$conf_sudo" run build2/build2/b-boot install +run which b-stage +run which bpkg-stage + run b-stage --version run bpkg-stage --version @@ -221,6 +219,9 @@ fi run bpkg-stage build --yes build2 bpkg run bpkg-stage install build2 bpkg +run which b-stage +run which bpkg-stage + run b --version run bpkg --version |