build 569 B

12345678910111213141516171819
  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/"
  7. tar xf [% c('input_files_by_name/clang') %]
  8. mv clang "$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. cd "/var/tmp/dist"
  14. [% c('tar', {
  15. tar_src => [ project ],
  16. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  17. }) %]