From 6ec24f161105b1cb54fd1048c5757255a5530098 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Wed, 14 Mar 2012 01:04:45 -0400 Subject: Fixes to build numbering system for 2.9.x release --- build.number | 6 ++++-- build.xml | 26 +++++++++++++++++++++----- tools/get-scala-revision | 4 ++-- tools/get-scala-revision.bat | 5 +++++ 4 files changed, 32 insertions(+), 9 deletions(-) diff --git a/build.number b/build.number index f074e06d9a..4c8b62076d 100644 --- a/build.number +++ b/build.number @@ -1,5 +1,7 @@ #Tue Sep 11 19:21:09 CEST 2007 +version.major=2 version.minor=9 version.patch=2 -version.suffix=alpha -version.major=2 + +# Note: To build a release run ant with -Dbuild.release=true +# To build an RC, run ant with -Dmaven.version.suffix=-RCN diff --git a/build.xml b/build.xml index 477678eed8..7f8f7ba68e 100644 --- a/build.xml +++ b/build.xml @@ -211,7 +211,19 @@ INITIALISATION - + + + + + + + + + + + + + - + + value="${version.major}.${version.minor}.${version.patch}.${version.suffix}-${git.describe}"/> + + @@ -274,7 +289,8 @@ INITIALISATION - + + diff --git a/tools/get-scala-revision b/tools/get-scala-revision index 4d97ec58ad..14c84d0ad4 100755 --- a/tools/get-scala-revision +++ b/tools/get-scala-revision @@ -40,5 +40,5 @@ hash=$(echo $suffix | cut -d - -f 2) # remove any alphabetic characters before the version number tag=$(echo $tag | sed "s/\([a-z_A-Z]*\)\(.*\)/\2/") -# 2.10.0-M1-0098-g6f1c486d0b-2012-02-01 -printf "%s-%04d-%s-%s\n" "$tag" "$counter" "$hash" $(date "+%Y-%m-%d") +# 20120324-123-b0d78f7b9c +printf "%s-%04d-%s\n" $(date "+%Y%m%d") "$counter" "$hash" diff --git a/tools/get-scala-revision.bat b/tools/get-scala-revision.bat index f4dc24b71f..9618e99c32 100644 --- a/tools/get-scala-revision.bat +++ b/tools/get-scala-revision.bat @@ -14,9 +14,14 @@ if "%*"=="" ( ) cd %_DIR% +rem TODO - Look up bat scripting example and fix the darn string. if exist .git\NUL ( git describe HEAD --abbrev=7 --match dev ) +rem Implement something like the following +rem for /f "tokens=1,2,3 delims=- " %%a in ("%gitdescribe%") do set version=%%a&set commits=%%b&set sha=%%c +rem echo %date?%-%commits%-%sha% + :end @endlocal -- cgit v1.2.3