Commit e97fbbf7 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Extend build.xml for upcoming release

parent 17c1476e
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
Builds DBAL package, preparing it for distribution. Builds DBAL package, preparing it for distribution.
--> -->
<target name="build-dbal" depends="prepare"> <target name="build-dbal" depends="prepare">
<exec command="grep '${version}' ${project.basedir}/lib/Doctrine/DBAL/Version.php" checkreturn="true"/>
<copy todir="${build.dir}/doctrine-dbal"> <copy todir="${build.dir}/doctrine-dbal">
<fileset refid="shared-artifacts"/> <fileset refid="shared-artifacts"/>
</copy> </copy>
...@@ -173,13 +174,14 @@ ...@@ -173,13 +174,14 @@
</target> </target>
<target name="git-tag"> <target name="git-tag">
<exec command="grep '${version}' ${project.basedir}/lib/Doctrine/DBAL/Version.php" checkreturn="true"/>
<exec command="git tag -a ${version}" passthru="true" /> <exec command="git tag -a ${version}" passthru="true" />
<exec command="git push origin ${version}" passthru="true" /> <exec command="git push origin ${version}" passthru="true" />
</target> </target>
<target name="pirum-release"> <target name="pirum-release">
<exec command="pirum add ${project.pirum_dir} ${project.basedir}/dist/DoctrineDBAL-${version}.tgz" dir="." passthru="true" /> <exec command="sudo pirum add ${project.pirum_dir} ${project.basedir}/dist/DoctrineDBAL-${version}.tgz" dir="." passthru="true" />
<exec command="pirum build ${project.pirum_dir}" passthru="true" /> <exec command="sudo pirum build ${project.pirum_dir}" passthru="true" />
</target> </target>
<target name="distribute-download"> <target name="distribute-download">
...@@ -187,6 +189,7 @@ ...@@ -187,6 +189,7 @@
</target> </target>
<target name="update-dev-version"> <target name="update-dev-version">
<exec command="grep '${version}' ${project.basedir}/lib/Doctrine/DBAL/Version.php" checkreturn="true"/>
<propertyprompt propertyName="next_version" defaultValue="${version}" promptText="Enter next version string (without -DEV)" /> <propertyprompt propertyName="next_version" defaultValue="${version}" promptText="Enter next version string (without -DEV)" />
<exec command="sed 's/${version}-DEV/${next_version}-DEV/' ${project.basedir}/lib/Doctrine/DBAL/Version.php > ${project.basedir}/lib/Doctrine/DBAL/Version2.php" passthru="true" /> <exec command="sed 's/${version}-DEV/${next_version}-DEV/' ${project.basedir}/lib/Doctrine/DBAL/Version.php > ${project.basedir}/lib/Doctrine/DBAL/Version2.php" passthru="true" />
<exec command="mv ${project.basedir}/lib/Doctrine/DBAL/Version2.php ${project.basedir}/lib/Doctrine/DBAL/Version.php" passthru="true" /> <exec command="mv ${project.basedir}/lib/Doctrine/DBAL/Version2.php ${project.basedir}/lib/Doctrine/DBAL/Version.php" passthru="true" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment