wscript 806 B

1234567891011121314151617181920212223242526272829
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. VERSION = '1.0.0'
  4. APPNAME = 'testR'
  5. top = '.'
  6. out = 'build'
  7. def configure(ctx):
  8. ctx.find_program('texi2dvi')
  9. ctx.load('R')
  10. def build(ctx):
  11. ctx(
  12. rule = '${R} CMD BATCH ${tsk.generator.ropts} ${tsk.generator.fopt % tsk.inputs[1].abspath()} -- ${SRC[0].abspath()} foo.log',
  13. source = 'src/test.R src/testSweave.Rnw',
  14. target = 'src/testSweave.pdf',
  15. cwd = ctx.path.find_node('src').get_bld().abspath(),
  16. install_path = '${PREFIX}/share',
  17. shell = False,
  18. ropts = '--no-restore --no-save --no-readline --numTrees=1000',
  19. fopt = '--ffff=%s'
  20. )
  21. def dist(ctx):
  22. ctx.algo = 'zip'
  23. ctx.excl = ' **/waf-* **/.waf-* **/*~ **/*.orig **/*.pyc **/*.pyo **/*.bak **/.lock-w* **/*.log **/*.lot **/*.lof **/*.lst **/*.aux **/*.bbl **/*.blg **/*.out **/*.toc'