build 762 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir="/var/tmp/dist/[% project %]"
  4. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  5. mkdir -p /var/tmp/build
  6. tar -C /var/tmp/build -xf [% project %]-[% c("version") %].tar.gz
  7. cd /var/tmp/build/[% project %]-[% c("version") %]
  8. [% IF c("var/windows-i686") -%]
  9. make x86
  10. [% ELSE -%]
  11. make x64
  12. [% END -%]
  13. mkdir -p $distdir/bin/
  14. cp fxc2.exe $distdir/bin/
  15. [% IF c("var/windows-i686") -%]
  16. cp dll/d3dcompiler_47_32.dll $distdir/bin/d3dcompiler_47.dll
  17. [% ELSE -%]
  18. cp dll/d3dcompiler_47.dll $distdir/bin/
  19. [% END -%]
  20. cd /var/tmp/dist
  21. [% c('tar', {
  22. tar_src => [ project ],
  23. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  24. }) %]