1$! Copyright 2015 Artur Shepilko. 2$! 3$! Distributed under the Boost Software License, Version 1.0. 4$! (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 5$! 6$ THIS_FACILITY = "BOOSTBUILD" 7$ 8$ verify = f$trnlnm("VERIFY_''THIS_FACILITY'") 9$ save_verify = f$verify(verify) 10$ save_default = f$env("DEFAULT") 11$ 12$ SAY := WRITE SYS$OUTPUT 13$ 14$ ON WARNING THEN CONTINUE 15$ ON ERROR THEN GOTO ERROR 16$ 17$ SAY "I|Bootstrapping the build engine..." 18$ 19$ set def [.src.engine] 20$ @build_vms /out=[--]bootstrap.log 21$ 22$ set def 'save_default' 23$ 24$ if f$search("[.src.engine.bin_vms]b2.exe") .eqs. "" then goto ERROR 25$ copy [.src.engine.bin_vms]b2.exe [] 26$ copy [.src.engine.bin_vms]bjam.exe [] 27$ 28$ SAY "I|Bootstrapping is done, B2.EXE created." 29$ type sys$input 30$DECK 31 32 To build and install under ROOT: directory, run: 33 MC []B2 --prefix="/root" install 34 35 Set B2 command: 36 B2 :== $ROOT:[BIN]B2.EXE 37 38$EOD 39$ sts = 1 40$ 41$EXIT: 42$ set def 'save_default' 43$ exit 'sts' + (0 * f$verify(save_verify)) 44 45$ERROR: 46$ SAY "E|Failed to bootstrap build engine, see BOOTSTRAP.LOG for details." 47$ sts = 4 48$ goto EXIT 49