Reverted to old slightly-less-broken scheme for guessing SVN revision number.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@9838 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
dubochet 2007-01-31 17:38:08 +00:00
parent 7b6f57e6a5
commit 3a80868546
1 changed files with 8 additions and 1 deletions

View File

@ -138,7 +138,14 @@ INITIALISATION
<contains string="${java.version}" substring="1.4"/>
</condition>
<!-- Finding out SVN revision -->
<exec executable="svnversion" outputproperty="svn.number"/>
<loadfile
property="entries"
srcFile="${basedir}/.svn/entries"
failonerror="false"/>
<propertyregex
property="svn.number" input="${entries}" select="\1"
regexp="revision=\042([0-9]*)\042\.*"
defaultValue="x"/>
<property name="init.avail" value="yes"/>
<!-- Printing out some information about what environment I am running in -->
<echo level="info"