build 604 B

1234567891011121314151617
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  4. distdir=/var/tmp/dist/[% project %]
  5. mkdir -p $distdir
  6. mkdir -p /var/tmp/build
  7. tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
  8. cd /var/tmp/build/[% project %]-[% c('version') %]
  9. ./autogen.sh
  10. ./configure [% c("var/configure_opt") %] --prefix=$distdir
  11. make -j[% c("buildconf/num_procs") %] install
  12. cd /var/tmp/dist
  13. [% c('tar', {
  14. tar_src => [ project ],
  15. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  16. }) %]