build 628 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/StemNS
  4. mkdir /var/tmp/build
  5. mkdir /var/tmp/dist
  6. # Extract StemNS
  7. tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
  8. cp -a /var/tmp/build/[% project %]-[% c('version') %] ${distdir}
  9. # Extract Stem
  10. tar -C /var/tmp/build -xf stem-[% c("var/stem-version") %].tar.gz
  11. cp -a /var/tmp/build/stem-[% c("var/stem-version") %]/stem ${distdir}/stem
  12. # Apply settings
  13. cp -a settings_port.py settings_services.py ${distdir}/
  14. cd /var/tmp/dist/
  15. [% c('tar', {
  16. tar_src => '.',
  17. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  18. }) %]