Index: C:/workspace/jython_svn/jython/src/org/python/core/PySystemState.java =================================================================== --- C:/workspace/jython_svn/jython/src/org/python/core/PySystemState.java (revision 2949) +++ C:/workspace/jython_svn/jython/src/org/python/core/PySystemState.java (working copy) @@ -39,13 +39,18 @@ /** * The current version of Jython. + *

+ * Usually updated by hand.
+ * Replaced by ant when doing a snapshot build. + *

+ * This also applies for the PY_* integer values below */ public static String version = "2.2a1"; private static int PY_MAJOR_VERSION = 2; private static int PY_MINOR_VERSION = 2; private static int PY_MICRO_VERSION = 0; - private static int PY_RELEASE_LEVEL = 0xA; + private static int PY_RELEASE_LEVEL = 0x0A; private static int PY_RELEASE_SERIAL = 1; public static int hexversion = ((PY_MAJOR_VERSION << 24) | @@ -503,6 +508,8 @@ s = "candidate"; else if (PY_RELEASE_LEVEL == 0x0F) s = "final"; + else if (PY_RELEASE_LEVEL == 0xAA) + s = "snapshot"; version_info = new PyTuple(new PyObject[] { Py.newInteger(PY_MAJOR_VERSION), Py.newInteger(PY_MINOR_VERSION), Index: C:/workspace/jython_svn/jython/build.xml =================================================================== --- C:/workspace/jython_svn/jython/build.xml (revision 2922) +++ C:/workspace/jython_svn/jython/build.xml (working copy) @@ -67,9 +67,10 @@ - jdk.target.version (target: pre-init) 4. if new CPython .py files should be distributed, add them to build.Lib.include.properties 5. adjust the public static String version in PySystemState.java - 6. check in all the changes - 7. apply the new tag to the jython svn (all projects) - 8. call target 'full-build' + 6. adjust the version strings in target 'version' of this build.xml + 7. check in all the changes + 8. apply the new tag to the jython svn (all projects) + 9. call target 'full-build' @@ -110,6 +111,10 @@ #svn.tag=Release_2_2alpha2 svn.tag=HEAD +# - the revision; defaults to svn.tag; only needed for full-build +# (uncomment and indicate the correct revision to do a snapshot build) +#svn.revision=2948 + # - the directory containing libsvnjavahl-1.dll (on windows) and svnjavahl.jar; only needed for full-build # how to get these: # - download http://subversion.tigris.org/files/documents/15/31073/svn-win32-1.3.1_javahl.zip (or newer) @@ -209,6 +214,9 @@ + + + @@ -220,6 +228,11 @@ + + + + + @@ -230,7 +243,6 @@ - @@ -279,6 +291,8 @@ svn.checkout.dir = '${svn.checkout.dir}' javahl.dir = '${javahl.dir}' svnant.jar.dir = '${svnant.jar.dir}' + svn.revison = '${svn.revison}' + do.snapshot.build = '${do.snapshot.build}' do.checkout = '${do.checkout}' @@ -344,8 +358,8 @@ - - + + @@ -359,6 +373,15 @@ + + + + + + + + + @@ -369,7 +392,7 @@ - +

- + @@ -603,13 +626,13 @@ building installer .jar file - +
- +