build 437 B

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