Commit d634cd86ff4da39b3e4267ea2ef842a4d8d14f3f

Authored by Mumfrey
1 parent d725a740

updating seeding script

Showing 1 changed file with 6 additions and 13 deletions
ant/seed_md5.xml
... ... @@ -4,15 +4,13 @@
4 4 <!-- ========================================================================== -->
5 5 <!-- DO NOT RUN THIS SCRIPT DIRECTLY -->
6 6 <!-- ========================================================================== -->
7   -
  7 +
8 8 <!-- This script is called by the LiteLoader build script if the initial MD5s -->
9 9 <!-- are missing. If you want to fire this script then delete the 'md5' folder -->
10 10 <!-- before running the LiteLoader build. -->
11   -
  11 +
12 12 <target name="genmd5" description="Seed the initial MCP md5 set">
13 13 <echo level="info" message="MCP md5set was not found, making a clean compile" />
14   - <antcall target="clean" />
15   - <antcall target="init" />
16 14 <antcall target="recompile" />
17 15 <antcall target="reobfuscate" />
18 16 <antcall target="savemd5" />
... ... @@ -21,21 +19,16 @@
21 19 <target name="clean">
22 20 <echo level="info" message="Cleaning output directories" />
23 21  
24   - <delete dir="${src}" />
25 22 <delete dir="${mcp.dir}/reobf" />
26 23 </target>
27 24  
28   - <target name="init" description="Initialize environment">
  25 + <target name="init" depends="clean" description="Initialize environment">
29 26 <echo level="info" message="Initialising environment" />
30 27  
31 28 <mkdir dir="${md5.dir}" />
32   -
33   - <copy todir="${src}" verbose="false" overwrite="true">
34   - <fileset dir="${mc.src}" />
35   - </copy>
36 29 </target>
37 30  
38   - <target name="recompile" description="MCP recompile">
  31 + <target name="recompile" depends="init" description="MCP recompile">
39 32 <echo level="info" message="Compiling MCP sources" />
40 33  
41 34 <exec executable="${python_windows}" dir="${mcp.dir}" osfamily="windows">
... ... @@ -68,10 +61,10 @@
68 61 </exec>
69 62  
70 63 </target>
71   -
  64 +
72 65 <target name="savemd5" description="Put post-obfuscation MD5 to stored md5 set" if="outmd5set">
73 66 <echo level="info" message="Storing obfuscated MD5s" />
74 67  
75   - <copy file="${temp}/client_reobf.md5" tofile="${md5.dir}/client_mcp.md5" overwrite="true" verbose="true" />
  68 + <copy file="${temp.dir}/client_reobf.md5" tofile="${md5.dir}/client_mcp.md5" overwrite="true" verbose="true" />
76 69 </target>
77 70 </project>
78 71 \ No newline at end of file
... ...