diff options
author | Paul Phillips <paulp@improving.org> | 2011-12-12 13:25:39 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-12-12 13:28:45 -0800 |
commit | 5c7086b3c89ef5b7483bf5750b31dd76ab8b0cee (patch) | |
tree | 58db75343a26b8bb22ebf27c4c5db8a7ff34b3dc /tools/get-scala-revision.bat | |
parent | 3a3832700f1a61477931fac730200510ffa6bbb1 (diff) | |
download | scala-5c7086b3c89ef5b7483bf5750b31dd76ab8b0cee.tar.gz scala-5c7086b3c89ef5b7483bf5750b31dd76ab8b0cee.tar.bz2 scala-5c7086b3c89ef5b7483bf5750b31dd76ab8b0cee.zip |
More build.xml massaging.
Backporting auto starr download to 2.8.x and 2.9.x build.xmls.
Trying to get build strings consistent.
Diffstat (limited to 'tools/get-scala-revision.bat')
-rw-r--r-- | tools/get-scala-revision.bat | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/get-scala-revision.bat b/tools/get-scala-revision.bat new file mode 100644 index 0000000000..f4dc24b71f --- /dev/null +++ b/tools/get-scala-revision.bat @@ -0,0 +1,22 @@ +@echo off +rem +rem Usage: get-scala-revison.bat [dir] +rem Figures out current scala revision of a git clone. +rem +rem If no dir is given, current working dir is used. + +@setlocal +set _DIR= +if "%*"=="" ( + for /f "delims=;" %%i in ('cd') do set "_DIR=%%i" +) else ( + set "_DIR=%~1" +) +cd %_DIR% + +if exist .git\NUL ( + git describe HEAD --abbrev=7 --match dev +) + +:end +@endlocal |