build 713 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/[% project %]
  4. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  5. mkdir -p /var/tmp/dist
  6. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  7. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  8. mkdir -p /var/tmp/build
  9. tar -C /var/tmp/build -xf $rootdir/[% c('input_files_by_name/elfutils') %]
  10. cd /var/tmp/build/[% project %]-[% c("version") %]
  11. ./configure --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. }) %]