uses major/minor/patch versions before incrementing them

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@6722 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2006-03-12 22:35:28 +00:00
parent 9235280846
commit 9d5bb419c7
1 changed files with 9 additions and 9 deletions

View File

@ -875,21 +875,26 @@ GENERATES A DISTRIBUTION
</target> </target>
<target name="dist.patch" depends="init"> <target name="dist.patch" depends="init">
<property file="${number.file}"/>
<property
name="version.number"
value="${version.major}.${version.minor}.${version.patch}"
/>
<propertyfile <propertyfile
file="${number.file}" file="${number.file}"
comment="Version last updated on ${time.human}" comment="Version last updated on ${time.human}"
> >
<entry key="version.patch" type="int" default="0" operation="+"/> <entry key="version.patch" type="int" default="0" operation="+"/>
</propertyfile> </propertyfile>
<runtarget target="dist"/>
</target>
<target name="dist.minor" depends="init">
<property file="${number.file}"/> <property file="${number.file}"/>
<property <property
name="version.number" name="version.number"
value="${version.major}.${version.minor}.${version.patch}" value="${version.major}.${version.minor}.${version.patch}"
/> />
<runtarget target="dist"/>
</target>
<target name="dist.minor" depends="init">
<propertyfile <propertyfile
file="${number.file}" file="${number.file}"
comment="Version last updated on ${time.human}" comment="Version last updated on ${time.human}"
@ -897,11 +902,6 @@ GENERATES A DISTRIBUTION
<entry key="version.minor" type="int" default="0" operation="+"/> <entry key="version.minor" type="int" default="0" operation="+"/>
<entry key="version.patch" type="int" value="0"/> <entry key="version.patch" type="int" value="0"/>
</propertyfile> </propertyfile>
<property file="${number.file}"/>
<property
name="version.number"
value="${version.major}.${version.minor}.${version.patch}"
/>
<runtarget target="dist"/> <runtarget target="dist"/>
</target> </target>