3 # custom_rhino.jar from:
4 # http://dojotoolkit.org/svn/dojo/buildscripts/lib/custom_rhino.jar
12 mk
= file('PlotKit/PlotKit.js').read()
16 outf
= file('PlotKit/PlotKit_Packed.js', 'w')
18 r
"""(?mxs)PlotKit.PlotKit.VERSION\s*=\s*['"]([^'"]+)""",
22 SUBMODULES
= sys
.argv
[1:]
24 SUBMODULES
= map(str.strip
, re
.search(
25 r
"""(?mxs)PlotKit.PlotKit.SUBMODULES\s*=\s*\[([^\]]+)""",
27 ).group(1).replace(' ', '').replace('"', '').split(','))
30 [file('PlotKit/%s.js' % m
).read() for m
in SUBMODULES
])
32 tf
= file('_scratch.js', 'w')
37 ['java', '-jar', 'scripts/custom_rhino.jar', '-c', tf
.name
],
38 stdout
=subprocess
.PIPE
,
42 PlotKit.PlotKit %(VERSION)s : PACKED VERSION
44 THIS FILE IS AUTOMATICALLY GENERATED. If creating patches, please
45 diff against the source tree, not this file.
47 For more information, <http://www.liquidx.net/plotkit/>.
49 Copyright (c) 2006. Alastair Tse.
53 shutil
.copyfileobj(p
.stdout
, outf
)