summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorkennyballou <kballou@onyx.boisestate.edu>2013-03-01 21:23:37 -0700
committerkennyballou <kballou@onyx.boisestate.edu>2013-03-01 21:23:37 -0700
commita75615ebcd0c3bd698dbee957ab932568e049298 (patch)
tree5e8a2c57cccf8d0e838e383249a6478b88541879 /README.rst
parentb9d04721caafb1ac2dbd90d548224416c3945c1f (diff)
downloadxnt-a75615ebcd0c3bd698dbee957ab932568e049298.tar.gz
xnt-a75615ebcd0c3bd698dbee957ab932568e049298.tar.xz
Update README build.py example
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst21
1 files changed, 10 insertions, 11 deletions
diff --git a/README.rst b/README.rst
index 18d4922..2d71f77 100644
--- a/README.rst
+++ b/README.rst
@@ -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()