generate-scheme48-files-wxi.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. # Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. #
  4. # Authors: Mike Sperber
  5. #
  6. # Build file list for the Windows installer WiX script
  7. # Mike doesn't know how to do this using only Windows batch files.
  8. # Run this in the source directory, under Cygwin or something.
  9. runnable=$1
  10. (
  11. echo ',batch';
  12. echo ',open (subset srfi-1 (partition delete-duplicates filter concatenate filter-map))';
  13. echo ',open (subset srfi-13 (string-tokenize))';
  14. echo ',open (subset srfi-14 (char-set char-set-complement))';
  15. echo ',load build/windows-installer.scm';
  16. # generate enough uuids and quote them
  17. echo '(define uuids (list ';
  18. uuidgen -n100 | sed 's/^.*$/"&"/';
  19. echo '))';
  20. echo '(define files (list';
  21. for f in scheme/*.scm \
  22. scheme/env/*.scm \
  23. scheme/big/*.scm \
  24. scheme/misc/*.scm \
  25. scheme/net/*.scm \
  26. scheme/r6rs/*.scm \
  27. scheme/cml/*.scm \
  28. scheme/srfi/*.scm \
  29. scheme/rts/*.scm \
  30. scheme/sort/*.scm \
  31. scheme/posix/*.scm \
  32. doc/*.ps doc/*.pdf doc/*.txt doc/html/*; do
  33. echo "\"$f\"";
  34. done;
  35. echo '))';
  36. echo "(write-file-elements-include-file files uuids \"build/scheme48-files.wxi\")"
  37. ) > scheme48-files.input
  38. # For some reason, directly piping into $runnable doesn't work under Mike's Cygwin
  39. # installation---the second 4k block gets read a second time.
  40. $runnable < scheme48-files.input