Build script now injects the version into the source.

This commit is contained in:
Kyprus 2012-06-23 09:45:52 -04:00
parent 35f1c754a5
commit 427035ae20

View file

@ -19,7 +19,7 @@
<property name="mcp.version" value="62"/> <property name="mcp.version" value="62"/>
<property name="forge.version" value="3.3.7.135"/> <property name="forge.version" value="3.3.7.135"/>
<property name="bc.version" value="3.2"/> <property name="bc.version" value="3.2dev"/>
<!-- Targets --> <!-- Targets -->
@ -75,7 +75,11 @@
<fileset dir="${src.dir}/common"> <fileset dir="${src.dir}/common">
<exclude name="**/buildcraft/devel"/> <exclude name="**/buildcraft/devel"/>
</fileset> </fileset>
<filterset>
<filter token="VERSION" value="${bc.version}" />
</filterset>
</copy> </copy>
<copy todir="${serversrc.dir}"> <copy todir="${serversrc.dir}">
<fileset dir="${src.dir}/buildcraft_server"> <fileset dir="${src.dir}/buildcraft_server">
<exclude name="**/mod_BuildCraftDevel.*"/> <exclude name="**/mod_BuildCraftDevel.*"/>
@ -85,6 +89,9 @@
<fileset dir="${src.dir}/common"> <fileset dir="${src.dir}/common">
<exclude name="**/buildcraft/devel"/> <exclude name="**/buildcraft/devel"/>
</fileset> </fileset>
<filterset>
<filter token="VERSION" value="${bc.version}" />
</filterset>
</copy> </copy>
</target> </target>