build 749 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir="/var/tmp/dist/[% project %]"
  4. mkdir -p "$distdir"
  5. tar xjf [% c('input_files_by_name/SDK') %]
  6. mv MacOSX10.11.sdk "$distdir/SDK"
  7. tar xf [% c('input_files_by_name/llvm') %]
  8. mv llvm "$distdir/clang"
  9. tar -C $distdir -xf [% c('input_files_by_name/cctools') %]
  10. cd $distdir/cctools/bin
  11. ln -s ../../clang/bin/clang x86_64-apple-darwin11-clang
  12. ln -s ../../clang/bin/clang++ x86_64-apple-darwin11-clang++
  13. # "go link", libevent, and the jemalloc cross-compilation during the Rust build
  14. # expect to find a program called "dsymutil" exactly.
  15. ln -s ../../clang/bin/llvm-dsymutil dsymutil
  16. cd "/var/tmp/dist"
  17. [% c('tar', {
  18. tar_src => [ project ],
  19. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  20. }) %]