wscript 413 B

123456789101112131415
  1. #! /usr/bin/env python
  2. """
  3. An example to show how multiple tasks can modify the same file
  4. """
  5. def configure(conf):
  6. pass
  7. def build(bld):
  8. bld.env.A = "test (change me) "
  9. bld(rule="echo '${A}' > ${TGT}", target='foo.txt', name='foo')
  10. bld(rule='echo `cat ${SRC} ${SRC}` > ${SRC}', source='foo.txt', name='one')
  11. bld(rule='echo `cat ${SRC} ${SRC}` > ${SRC}', source='foo.txt', after=['one'], name='two')