build 925 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir="/var/tmp/dist/[% project %]"
  4. [% IF c("var/windows") -%]
  5. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  6. [% ELSE -%]
  7. [% c("var/set_PTDIR_DOCSDIR") -%]
  8. mkdir -p $PTDIR
  9. [% END -%]
  10. mkdir -p /var/tmp/build
  11. tar -C /var/tmp/build -xf $rootdir/Parsley-[% c('version') %].tar.gz
  12. cd /var/tmp/build/Parsley-[% c('version') %]
  13. [% IF c("var/windows") -%]
  14. pydir="$distdir/python"
  15. mkdir -p $pydir/Lib/site-packages
  16. export PYTHONPATH="$(wine winepath -w $pydir)\\Lib\\site-packages"
  17. $PYTHON setup.py install --prefix=$(wine winepath -w $pydir)
  18. [% ELSE -%]
  19. PYTHON=python2
  20. $PYTHON setup.py build --build-lib build
  21. cp -a build/parsley.py build/ometa build/terml $PTDIR/
  22. [% END -%]
  23. cd $distdir
  24. [% c('tar', {
  25. tar_src => [ '.' ],
  26. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  27. }) %]