diff --git a/build.xml b/build.xml index 4a9da7cf2c..b23a03956c 100644 --- a/build.xml +++ b/build.xml @@ -9,20 +9,6 @@ ====================================================================== --> The Forge Mod Loader - - - - - - - - - - - - - - @@ -78,6 +64,8 @@ + + @@ -88,11 +76,7 @@ - - - - - + @@ -148,38 +132,11 @@ - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -212,7 +169,7 @@ - + @@ -243,7 +200,7 @@ - + @@ -282,9 +239,9 @@ - Setup complete! You should now be able to open ${basedir}/eclipse as a workspace in eclipse and import/refresh the FML-Server and FML-Client projects + Setup complete! You should now be able to open ${basedir}/eclipse as a workspace in eclipse and import/refresh the FML project - + diff --git a/getversion.py b/getversion.py index 53abe8f6d3..6f53c7154b 100644 --- a/getversion.py +++ b/getversion.py @@ -47,6 +47,14 @@ def main(): (mcpversion,mcclientversion,mcserverversion) = re.match("[.\w]+ \(data: ([.\w]+), client: ([.\w.]+), server: ([.\w.]+)\)",Commands.fullversion()).groups() + cmd = "git rev-parse --abbrev-ref HEAD" + try: + process = subprocess.Popen(cmdsplit(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=-1) + branch, _ = process.communicate() + except OSError: + print("Git not found") + branch="none" + with open("fmlversion.properties","w") as f: f.write("%s=%s\n" %("fmlbuild.major.number",major)) f.write("%s=%s\n" %("fmlbuild.minor.number",minor)) @@ -54,8 +62,9 @@ def main(): f.write("%s=%s\n" %("fmlbuild.githash",githash)) f.write("%s=%s\n" %("fmlbuild.mcpversion",mcpversion)) f.write("%s=%s\n" %("fmlbuild.mcversion",mcclientversion)) + f.write("%s=%s\n" %("fmlbuild.branch",branch)) - print("Version information: FML %s.%s.%s using MCP %s for minecraft %s" % (major, minor, rev, mcpversion, mcclientversion)) + print("Version information: FML %s.%s.%s (%s) using MCP %s for minecraft %s" % (major, minor, rev, branch, mcpversion, mcclientversion)) if __name__ == '__main__': main()