aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@aura-online.co.uk>2008-06-08 13:55:12 +0000
committerJames Le Cuirot <chewi@aura-online.co.uk>2008-06-08 13:55:12 +0000
commitb36ac68e4d8a37a44b55a29213b28419ade9a884 (patch)
tree9820bc1c80151f474840c4f2c3a1f3b438c99406
parentIn-place editing for buildparser. (diff)
downloadjavatoolkit-b36ac68e4d8a37a44b55a29213b28419ade9a884.tar.gz
javatoolkit-b36ac68e4d8a37a44b55a29213b28419ade9a884.tar.bz2
javatoolkit-b36ac68e4d8a37a44b55a29213b28419ade9a884.zip
Allow addition of new keys.
svn path=/projects/javatoolkit/trunk/; revision=6291
-rw-r--r--src/buildparser/buildparser4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildparser/buildparser b/src/buildparser/buildparser
index 19c1fe0..3c6952a 100644
--- a/src/buildparser/buildparser
+++ b/src/buildparser/buildparser
@@ -91,8 +91,10 @@ def main():
if n != None:
n.value = args[1]
+ else:
+ t.add_kid(Node(args[0], args[1]))
- if n != None and opt.in_place:
+ if opt.in_place:
f = open(args[-1], "w+")
p.output(f, t)
f.close()