build-usual-image 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. # Build the usual development environment image.
  3. date=`date`
  4. srcdir=$1
  5. lib=$2
  6. image=$3
  7. vm=$4
  8. initial=$5
  9. USER=${USER-`logname 2>/dev/null || echo '*GOK*'`}
  10. $vm -i $initial -a batch <<EOF
  11. ,load $srcdir/scheme/env/init-defpackage.scm
  12. ((*structure-ref filenames 'set-translation!)
  13. "=scheme48/" "$srcdir/scheme/")
  14. ,load =scheme48/packages.scm
  15. ,load =scheme48/more-interfaces.scm
  16. ,load =scheme48/link-packages.scm
  17. ,load =scheme48/env-packages.scm
  18. ,load =scheme48/sort/interfaces.scm
  19. ,load =scheme48/sort/packages.scm
  20. ,load =scheme48/more-packages.scm
  21. ,load =scheme48/posix/packages.scm
  22. ,load =scheme48/cml/interfaces.scm
  23. ,load =scheme48/cml/packages.scm
  24. ,load =scheme48/srfi/packages.scm
  25. (ensure-loaded command-processor)
  26. (ensure-loaded usual-commands)
  27. ,go ((*structure-ref command 'command-processor)
  28. (structure-package usual-commands)
  29. (list "batch"))
  30. (ensure-loaded usual-features)
  31. ,structure more-structures more-structures-interface
  32. ,in debuginfo (read-debug-info "$srcdir/build/initial.debug")
  33. ,keep maps source files
  34. ,translate =scheme48/ "$lib/"
  35. ,build ((*structure-ref package-commands-internal
  36. 'new-command-processor)
  37. "(made by $USER on $date)"
  38. usual-commands
  39. built-in-structures more-structures) $image
  40. EOF