bootstrap_vms.com 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. To build and install under ROOT: directory, run:
  32. MC []B2 --prefix="/root" install
  33. Set B2 command:
  34. B2 :== $ROOT:[BIN]B2.EXE
  35. $EOD
  36. $ sts = 1
  37. $
  38. $EXIT:
  39. $ set def 'save_default'
  40. $ exit 'sts' + (0 * f$verify(save_verify))
  41. $ERROR:
  42. $ SAY "E|Failed to bootstrap build engine, see BOOTSTRAP.LOG for details."
  43. $ sts = 4
  44. $ goto EXIT