generate-scheme48-files-wxi.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. # Build file list for the Windows installer WiX script
  3. # Mike doesn't know how to do this using only Windows batch files.
  4. # Run this in the source directory, under Cygwin or something.
  5. runnable=$1
  6. (
  7. echo ',batch';
  8. echo ',open srfi-1 srfi-13 srfi-14';
  9. echo ',load build/windows-installer.scm';
  10. # generate enough uuids and quote them
  11. echo '(define uuids (list ';
  12. uuidgen -n100 | sed 's/^.*$/"&"/';
  13. echo '))';
  14. echo '(define files (list';
  15. for f in scheme/*.scm \
  16. scheme/env/*.scm \
  17. scheme/big/*.scm \
  18. scheme/misc/*.scm \
  19. scheme/cml/*.scm \
  20. scheme/srfi/*.scm \
  21. scheme/rts/*.scm \
  22. scheme/sort/*.scm \
  23. scheme/posix/*.scm \
  24. doc/*.ps doc/*.pdf doc/*.txt doc/html/*; do
  25. echo "\"$f\"";
  26. done;
  27. echo '))';
  28. echo "(write-file-elements-include-file files uuids \"build/scheme48-files.wxi\")"
  29. ) > scheme48-files.input
  30. # For some reason, directly piping into $runnable doesn't work under Mike's Cygwin
  31. # installation---the second 4k block gets read a second time.
  32. $runnable < scheme48-files.input