build 654 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% IF c("var/linux") %]
  4. [% pc('gcc', 'var/setup', { compiler_tarfile => c('input_files_by_name/gcc'),
  5. hardened_gcc => 0 }) %]
  6. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  7. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  8. [% END -%]
  9. distdir=/var/tmp/dist/[% project %]
  10. tar -xf [% c('input_files_by_name/node') %]
  11. cd node-v[% c('version') %]
  12. ./configure --prefix=$distdir
  13. make -j[% c("num_procs") %]
  14. make install
  15. cd /var/tmp/dist
  16. [% c('tar', {
  17. tar_src => [ project ],
  18. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  19. }) %]