build-usual-image 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/sh
  2. # Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. #
  4. # Authors: Richard Kelsey, Jonathan Rees, Mike Sperber, Marcus Crestani
  5. #
  6. # Build the usual development environment image.
  7. date=`date +%Y-%m-%d`
  8. srcdir=$1
  9. share=$2
  10. lib=$3
  11. image=$4
  12. vm=$5
  13. initial=$6
  14. USER=${USER-`logname 2>/dev/null || echo '*GOK*'`}
  15. $vm -i $initial -a batch <<EOF
  16. ,load $srcdir/scheme/env/init-defpackage.scm
  17. ((*structure-ref filenames 'set-global-translation!)
  18. "=scheme48/" "$srcdir/scheme/")
  19. ,load =scheme48/packages.scm
  20. ,load =scheme48/more-interfaces.scm
  21. ,load =scheme48/link-packages.scm
  22. ,load =scheme48/sort/interfaces.scm
  23. ,load =scheme48/sort/packages.scm
  24. ,load =scheme48/env-packages.scm
  25. ,load =scheme48/more-packages.scm
  26. ,load =scheme48/posix/packages.scm
  27. ,load =scheme48/srfi/packages.scm
  28. ,load =scheme48/r6rs/packages.scm
  29. ,load =scheme48/net/packages.scm
  30. ,load =scheme48/cml/interfaces.scm
  31. ,load =scheme48/cml/packages.scm
  32. (ensure-loaded command-processor)
  33. (ensure-loaded usual-commands)
  34. ,go ((*structure-ref command 'command-processor)
  35. (structure-package usual-commands)
  36. (list ((*structure-ref os-strings 'string->os-string) "batch")))
  37. (ensure-loaded usual-features)
  38. ,structure more-structures more-structures-interface
  39. ,in debuginfo (read-debug-info "$srcdir/build/initial.debug")
  40. ,keep maps source files
  41. ,new-package
  42. ,open scheme filenames
  43. (set-global-translation! "=scheme48/" "$share/")
  44. (set-global-translation! "=scheme48external/" "$lib/")
  45. ,user
  46. ,build ((*structure-ref package-commands-internal
  47. 'new-command-processor)
  48. "(made by $USER on $date)"
  49. usual-commands
  50. built-in-structures more-structures) $image
  51. EOF