ncdns-repro/projects/stemns/build
2022-05-06 11:50:37 +00:00

19 lines
461 B
Bash

#!/bin/sh
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/StemNS
mkdir /var/tmp/build
mkdir /var/tmp/dist
# Extract StemNS
tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
rm /var/tmp/build/[% project %]-[% c('version') %]/settings_*.py
cp -a /var/tmp/build/[% project %]-[% c('version') %] ${distdir}
cd /var/tmp/dist/
[% c('tar', {
tar_src => '.',
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]