build 671 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/[% project %]
  4. [% IF c("var/linux") %]
  5. [% pc('gcc', 'var/setup', { compiler_tarfile => c('input_files_by_name/gcc'),
  6. hardened_gcc => 0 }) %]
  7. [% END -%]
  8. [% pc('python', 'var/setup', { python_tarfile => c('input_files_by_name/python') }) %]
  9. mkdir /var/tmp/build
  10. tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
  11. cd /var/tmp/build/[% project %]-[% c('version') %]
  12. ./configure.py --bootstrap
  13. mkdir $distdir
  14. cp ninja $distdir
  15. cd /var/tmp/dist
  16. [% c('tar', {
  17. tar_src => [ project ],
  18. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  19. }) %]