build 681 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir="/var/tmp/dist/[% project %]"
  4. mkdir -p "$distdir"
  5. tar xzf [% c('input_files_by_name/SDK') %]
  6. mv MacOSX10.7.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-darwin10-clang
  12. ln -s ../../clang/bin/clang++ x86_64-apple-darwin10-clang++
  13. # "go link" expects to find a program called "dsymutil" exactly.
  14. ln -sf x86_64-apple-darwin10-dsymutil dsymutil
  15. cd "/var/tmp/dist"
  16. [% c('tar', {
  17. tar_src => [ project ],
  18. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  19. }) %]