Skip to content

Commit

Permalink
Revert "renaming pyjampiler bootstrap command to pyjscompile. pyjscom…
Browse files Browse the repository at this point in the history
…pile _is_ pyjampiler"

This reverts commit fcc95e2.

git-svn-id: https://pyjamas.svn.sourceforge.net/svnroot/pyjamas/trunk@2262 7a2bd370-bda8-463c-979e-2900ccfb811e
  • Loading branch information
lkcl committed Nov 11, 2009
1 parent 531ff69 commit 6748152
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,28 @@
pyjs.browser.build_script()
"""

pyjscompile= """#!%(exec)s
pyjscompile = """#!%(exec)s
pyjsversion = r'%(ver)s'
pyjspth = r'%(pyjspth)s'
import os
import sys
sys.path[0:0] = [r'%(pth)s']
sys.path.append(os.path.join(pyjspth, 'pgen'))
import pyjs.translator
pyjs.pyjspth = pyjspth
pyjs.path += [os.path.join(pyjspth, 'library')]
if __name__ == '__main__':
if "--version" in sys.argv:
print "Version:", pyjsversion
sys.exit(0)
pyjs.translator.main()
"""

pyjampiler= """#!%(exec)s
pyjsversion = r'%(ver)s'
pyjspth = r'%(pyjspth)s'
Expand Down Expand Up @@ -120,7 +141,8 @@ def make_cmd(prefix, pth, pyjsversion, pyjspth, cmdname, txt):
prefix = "."

make_cmd(prefix, pth, version, pyjspth, "pyjsbuild", pyjsbuild)
make_cmd(prefix, pth, version, pyjspth, "pyjscompile", pyjampiler)
make_cmd(prefix, pth, version, pyjspth, "pyjscompile", pyjscompile)
make_cmd(prefix, pth, version, pyjspth, "pyjampiler", pyjampiler)

# create pyjd/__init__.py
pyjdinitpth = os.path.join("pyjd", "__init__.py")
Expand Down

0 comments on commit 6748152

Please sign in to comment.