1234567891011121314151617181920212223242526272829 |
- #!/bin/bash
- [% c("var/set_default_env") -%]
- distdir=/var/tmp/dist/[% project %]
- [% IF c("var/linux") %]
- [% pc('gcc', 'var/setup', { compiler_tarfile => c('input_files_by_name/gcc'),
- hardened_gcc => 0 }) %]
- [% END -%]
- [% IF c("var/linux") -%]
- [% pc('python', 'var/setup', { python_tarfile => c('input_files_by_name/python') }) %]
- [% END -%]
- mkdir /var/tmp/build
- tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
- cd /var/tmp/build/[% project %]-[% c('version') %]
- [% IF !c("var/linux") -%]
- # Starting with Debian Bullseye, /usr/bin/python does not exist, so
- # we need to use python3 explicitly
- sed -i 's/env python$/env python3/' configure.py
- [% END -%]
- ./configure.py --bootstrap
- mkdir -p $distdir
- cp ninja $distdir
- cd /var/tmp/dist
- [% c('tar', {
- tar_src => [ project ],
- tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
- }) %]
|