added javascript runtime build

This commit is contained in:
Terence Parr 2015-01-22 15:14:23 -08:00
parent 481a6bc773
commit ab8e93d6fb
1 changed files with 7 additions and 1 deletions

View File

@ -181,7 +181,13 @@ def _mkjar(): # don't wipe out out dir if we know it's done like from all()
def javascript(): # TODO @eric
# No build to do. Just zip up the sources
pass
srcpath = uniformpath(JAVASCRIPT_TARGET+"/src")
srcfiles = allfiles(srcpath, "*.js") + allfiles(srcpath, "*.json")
zipfile = "dist/antlr-javascript-runtime-"+VERSION+".zip"
if not isstale(src=newest(srcfiles), trg=zipfile):
return
zip(zipfile, srcpath)
print "Generated " + zipfile
def csharp(): # TODO @eric