build 619 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/[% project %]
  4. mkdir /var/tmp/dist
  5. [% IF ! c("container/global_disable") -%]
  6. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/clang') %]
  7. export PATH="/var/tmp/dist/clang/bin:$PATH"
  8. [% END -%]
  9. tar -xf diskdev_cmds-[% c("version") %].tar.gz
  10. cd diskdev_cmds-[% c("version") %]
  11. patch -p1 < $rootdir/newfs_hfs.diff
  12. make -j[% c("num_procs") %]
  13. mkdir -p "$distdir"
  14. cp newfs_hfs.tproj/newfs_hfs "$distdir/"
  15. cd /var/tmp/dist
  16. [% c('tar', {
  17. tar_src => [ project ],
  18. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  19. }) %]