build 800 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% IF c("var/linux") %]
  4. # We need a link to our GCC, otherwise the system cc gets used which points to
  5. # /usr/bin/gcc.
  6. [% pc('gcc', 'var/setup', { compiler_tarfile => c('input_files_by_name/gcc'),
  7. hardened_gcc => 0 }) %]
  8. ln -s gcc /var/tmp/dist/gcc/bin/cc
  9. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  10. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  11. [% END -%]
  12. distdir=/var/tmp/dist/[% project %]
  13. tar -xf [% c('input_files_by_name/node') %]
  14. cd node-v[% c('version') %]
  15. ./configure --prefix=$distdir
  16. make -j[% c("buildconf/num_procs") %]
  17. make install
  18. cd /var/tmp/dist
  19. [% c('tar', {
  20. tar_src => [ project ],
  21. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  22. }) %]