build 603 B

12345678910111213141516171819
  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. mkdir /var/tmp/build
  9. tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
  10. cd /var/tmp/build/[% project %]-[% c('version') %]
  11. ./bootstrap --prefix=$distdir
  12. make -j[% c("buildconf/num_procs") %]
  13. make install
  14. cd /var/tmp/dist
  15. [% c('tar', {
  16. tar_src => [ project ],
  17. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  18. }) %]