build 781 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% pc('python', 'var/setup', { python_tarfile => c('input_files_by_name/python') }) %]
  4. tar xvf [% project %]-[% c('version') %].tar.gz
  5. cd [% project %]-[% c('version') %]
  6. python3 setup.py sdist --format=gztar
  7. mkdir -p /var/tmp/build/sdist/[% project %]
  8. tar -C /var/tmp/build/sdist/[% project %] -xvf dist/[% project %]-[% c('version') %].tar.gz
  9. mkdir -p /var/tmp/dist/[% project %]
  10. cd /var/tmp/dist/[% project %]
  11. cp -a /var/tmp/build/sdist/[% project %]/[% project %]*/[% project %] ./[% project %]
  12. [% IF c("var/only_top_10_issuers") %]
  13. cp $rootdir/roots_of_top_10_issuers.pem ./[% project %]/cacert.pem
  14. [% END %]
  15. [% c('tar', {
  16. tar_src => '.',
  17. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  18. }) %]