build-usual-image.bat 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @echo off
  2. rem Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. rem
  4. rem Authors: Richard Kelsey, Jonathan Rees, Mike Sperber, Marcus Crestani
  5. rem
  6. set srcdir=%1
  7. set srcdir_cooked=%~f1
  8. set srcdir_cooked=%srcdir_cooked:\=\\%
  9. set share=%~f2
  10. set share=%share:\=\\%
  11. set lib=%~f3
  12. set lib=%lib:\=\\%
  13. set image=%~4
  14. set vm=%5
  15. set initial=%6
  16. set builddate=%~t6
  17. echo ,load "%srcdir_cooked%scheme/env/init-defpackage.scm" > %srcdir%\build\build-usual-image.input
  18. echo ((*structure-ref filenames 'set-translation!) >> %srcdir%\build\build-usual-image.input
  19. echo "=scheme48/" "%srcdir_cooked%scheme/") >> %srcdir%\build\build-usual-image.input
  20. echo ,load =scheme48/packages.scm >> %srcdir%\build\build-usual-image.input
  21. echo ,load =scheme48/more-interfaces.scm >> %srcdir%\build\build-usual-image.input
  22. echo ,load =scheme48/link-packages.scm >> %srcdir%\build\build-usual-image.input
  23. echo ,load =scheme48/sort/interfaces.scm >> %srcdir%\build\build-usual-image.input
  24. echo ,load =scheme48/sort/packages.scm >> %srcdir%\build\build-usual-image.input
  25. echo ,load =scheme48/env-packages.scm >> %srcdir%\build\build-usual-image.input
  26. echo ,load =scheme48/more-packages.scm >> %srcdir%\build\build-usual-image.input
  27. echo ,load =scheme48/posix/packages.scm >> %srcdir%\build\build-usual-image.input
  28. echo ,load =scheme48/srfi/packages.scm >> %srcdir%\build\build-usual-image.input
  29. echo ,load =scheme48/r6rs/packages.scm >> %srcdir%\build\build-usual-image.input
  30. echo ,load =scheme48/net/packages.scm >> %srcdir%\build\build-usual-image.input
  31. echo ,load =scheme48/cml/interfaces.scm >> %srcdir%\build\build-usual-image.input
  32. echo ,load =scheme48/cml/packages.scm >> %srcdir%\build\build-usual-image.input
  33. echo (ensure-loaded command-processor) >> %srcdir%\build\build-usual-image.input
  34. echo (ensure-loaded usual-commands) >> %srcdir%\build\build-usual-image.input
  35. echo ,go ((*structure-ref command 'command-processor) >> %srcdir%\build\build-usual-image.input
  36. echo (structure-package usual-commands) >> %srcdir%\build\build-usual-image.input
  37. echo (list ((*structure-ref os-strings 'string-^>os-string) "batch"))) >> %srcdir%\build\build-usual-image.input
  38. echo (ensure-loaded usual-features) >> %srcdir%\build\build-usual-image.input
  39. echo ,structure more-structures more-structures-interface >> %srcdir%\build\build-usual-image.input
  40. echo ,in debuginfo (read-debug-info "%srcdir_cooked%build/initial.debug") >> %srcdir%\build\build-usual-image.input
  41. echo ,keep maps source files >> %srcdir%\build\build-usual-image.input
  42. echo ,new-package >> %srcdir%\build\build-usual-image.input
  43. echo ,open scheme filenames >> %srcdir%\build\build-usual-image.input
  44. echo (set-global-translation! "=scheme48/" "%share%/") >> %srcdir%\build\build-usual-image.input
  45. echo (set-global-translation! "=scheme48external/" "%lib%/") >> %srcdir%\build\build-usual-image.input
  46. echo ,user >> %srcdir%\build\build-usual-image.input
  47. echo ,build ((*structure-ref package-commands-internal >> %srcdir%\build\build-usual-image.input
  48. echo 'new-command-processor) >> %srcdir%\build\build-usual-image.input
  49. echo "(made by %USERNAME% on %builddate%)" >> %srcdir%\build\build-usual-image.input
  50. echo usual-commands >> %srcdir%\build\build-usual-image.input
  51. echo built-in-structures more-structures) "%image:\=\\%" >> %srcdir%\build\build-usual-image.input
  52. %vm% -i %initial% -a batch < %srcdir%\build\build-usual-image.input