Merge pull request #904 from WagicProject/build_clean

Simple build.xml cleanup
This commit is contained in:
Rolzad73
2017-01-26 23:17:13 -05:00
committed by GitHub
+13 -27
View File
@@ -11,52 +11,46 @@
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="groovy.class.path"/> <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="groovy.class.path"/>
<tstamp> <tstamp>
<format property="TODAY" pattern="EEE, dd-MMM-yyyy HH::mm:ss" /> <format pattern="EEE, dd-MMM-yyyy HH::mm:ss" property="TODAY"/>
</tstamp> </tstamp>
<target name="update.major"> <target name="update.major">
<echo message="incrementing Major Version number by 1"/> <echo message="incrementing Major Version number by 1"/>
<!-- update the build.number.properties file --> <!-- update the build.number.properties file -->
<propertyfile file="build.number.properties" <propertyfile comment="build.number.properties (normally this file is maintained by build.xml)"
comment="build.number.properties (normally this file is maintained by build.xml)"> file="build.number.properties">
<entry key="build.major" type="int" default="0" operation="+" pattern="0" /> <entry default="0" key="build.major" operation="+" pattern="0" type="int"/>
</propertyfile> </propertyfile>
</target> </target>
<target name="update.minor"> <target name="update.minor">
<echo message="incrementing minor Version number by 1"/> <echo message="incrementing minor Version number by 1"/>
<!-- update the build.number.properties file --> <!-- update the build.number.properties file -->
<propertyfile file="build.number.properties" <propertyfile comment="build.number.properties (normally this file is maintained by build.xml)"
comment="build.number.properties (normally this file is maintained by build.xml)"> file="build.number.properties">
<entry key="build.minor" type="int" default="00" operation="+" pattern="00" /> <entry default="00" key="build.minor" operation="+" pattern="00" type="int"/>
</propertyfile> </propertyfile>
</target> </target>
<target name="update.point"> <target name="update.point">
<echo message="incrementing point Version number by 1"/> <echo message="incrementing point Version number by 1"/>
<!-- update the build.number.properties file --> <!-- update the build.number.properties file -->
<propertyfile file="build.number.properties" <propertyfile comment="build.number.properties (normally this file is maintained by build.xml)"
comment="build.number.properties (normally this file is maintained by build.xml)"> file="build.number.properties">
<entry key="build.point" type="int" default="0" operation="+" pattern="0" /> <entry default="0" key="build.point" operation="+" pattern="0" type="int"/>
</propertyfile> </propertyfile>
</target> </target>
<target name="update" description="Updates the AndroidManifest and Wagic_Version.h with the current version information"> <target name="update" description="Updates the AndroidManifest and Wagic_Version.h with the current version information">
<antcall target="build.maemo.changelog"/> <antcall target="build.maemo.changelog"/>
<antcall target="build.meego.changelog" />
<antcall target="build.wagic.header"/> <antcall target="build.wagic.header"/>
<antcall target="update.android.manifest"/> <antcall target="update.android.manifest"/>
</target> </target>
<target name="update.android.manifest" description="Updates the AndroidManifest.xml with the current version information"> <target name="update.android.manifest" description="Updates the AndroidManifest.xml with the current version information">
<groovy classpathref="groovy.class.path" src="${basedir}/updateAndroidManifest.groovy">
<groovy src="${basedir}/updateAndroidManifest.groovy" classpathref="groovy.class.path" >
<arg value="Android/AndroidManifest.xml"/> <arg value="Android/AndroidManifest.xml"/>
</groovy> </groovy>
</target> </target>
<target name="build.wagic.header" description="Create the Wagic_Version.h file"> <target name="build.wagic.header" description="Create the Wagic_Version.h file">
@@ -98,21 +92,12 @@ Author: Michael Nguyen
</echo> </echo>
</target> </target>
<target name="build.maemo.changelog" description="Create the maemo changelog file"> <target name="build.maemo.changelog" description="Create the maemo changelog file">
<echo message="Creating maemo changelog"/> <echo message="Creating maemo changelog"/>
<echo file="${basedir}/debian/changelog"> <echo file="${basedir}/debian/changelog">
wagic (${build.major}.${build.minor}.${build.point}maemo0) unstable; urgency=low wagic (${build.major}.${build.minor}.${build.point}maemo0) unstable; urgency=low
* {replace with some kickass changelog}
-- Xawotihs ${TODAY}
</echo>
</target>
<target name="build.meego.changelog" description="Create the meego changelog file" >
<echo message="Creating meego changelog" />
<echo file="${basedir}/debian_harmattan/changelog" >
wagic (${build.major}.${build.minor}.${build.point}meego0) unstable; urgency=low
* {replace with some kickass changelog} * {replace with some kickass changelog}
-- Xawotihs ${TODAY} -- Xawotihs ${TODAY}
@@ -123,3 +108,4 @@ wagic (${build.major}.${build.minor}.${build.point}meego0) unstable; urgency=low
<echo message="Current version: ${build.major}.${build.minor}.${build.point} "/> <echo message="Current version: ${build.major}.${build.minor}.${build.point} "/>
</target> </target>
</project> </project>