build 646 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', {
  6. compiler_tarfile => c('input_files_by_name/gcc'),
  7. target => [ c('var/channel'), 'torbrowser-linux-x86_64' ],
  8. hardened_gcc => 0
  9. }) %]
  10. [% END -%]
  11. mkdir /var/tmp/build
  12. tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
  13. cd /var/tmp/build/[% project %]-[% c('version') %]
  14. ./bootstrap --prefix=$distdir
  15. make -j[% c("buildconf/num_procs") %]
  16. make install
  17. cd /var/tmp/dist
  18. [% c('tar', {
  19. tar_src => [ project ],
  20. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  21. }) %]