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