diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-08 11:05:13 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-08 11:05:13 -0800 |
commit | 06e151aa3ef5b670e541a5061e9bcda6a4a3b88e (patch) | |
tree | 1cccaff2863fae2215128d81e93c9b8c476c10e1 /tools/get-scala-revision | |
parent | 99844ebc107d7c22eef64f48695cda4329be7c3b (diff) | |
parent | 143c184c4df1ee9da37187f294bc7431b4b1f33c (diff) | |
download | scala-06e151aa3ef5b670e541a5061e9bcda6a4a3b88e.tar.gz scala-06e151aa3ef5b670e541a5061e9bcda6a4a3b88e.tar.bz2 scala-06e151aa3ef5b670e541a5061e9bcda6a4a3b88e.zip |
Merge branch 'base-2.8.x-2.9.x-2.10.x'
Diffstat (limited to 'tools/get-scala-revision')
-rwxr-xr-x | tools/get-scala-revision | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/get-scala-revision b/tools/get-scala-revision index 8747fdc3fb..4d97ec58ad 100755 --- a/tools/get-scala-revision +++ b/tools/get-scala-revision @@ -37,5 +37,8 @@ suffix="${described##${tag}-}" counter=$(echo $suffix | cut -d - -f 1) hash=$(echo $suffix | cut -d - -f 2) -# v2.10.0-M1-0098-g6f1c486d0b-2012-02-01 +# 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") |