diff options
author | kennyballou <kballou@onyx.boisestate.edu> | 2013-03-01 21:23:37 -0700 |
---|---|---|
committer | kennyballou <kballou@onyx.boisestate.edu> | 2013-03-01 21:23:37 -0700 |
commit | a75615ebcd0c3bd698dbee957ab932568e049298 (patch) | |
tree | 5e8a2c57cccf8d0e838e383249a6478b88541879 /README.rst | |
parent | b9d04721caafb1ac2dbd90d548224416c3945c1f (diff) | |
download | xnt-a75615ebcd0c3bd698dbee957ab932568e049298.tar.gz xnt-a75615ebcd0c3bd698dbee957ab932568e049298.tar.xz |
Update README build.py example
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -159,34 +159,33 @@ Here is a simple ``build.py``:: #!/usr/bin/env python - from xnt import target - from xnt.tasks import * + import xnt from xnt.build import make - @target + @xnt.target def init(): - mkdir("bin") + xnt.mkdir("bin") - @target + @xnt.target def build(): init() make.ant("build") - @target + @xnt.target def clean(): - rm("bin") + xnt.rm("bin") - @target + @xnt.target def rebuild(): clean() build() - @target + @xnt.target def package(): rebuild() - zip("bin", "packaged.zip") + xnt.zip("bin", "packaged.zip") - @target + @xnt.target def default(): package() |