[15023] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[16087] | 2 | <project name="wirk2-compile" default="compile">
|
---|
[15023] | 3 |
|
---|
| 4 | <target name="compile">
|
---|
[16745] | 5 | <antcall target="checkout-gsdl-gli" />
|
---|
[17898] | 6 | <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/compiled"/></antcall>
|
---|
[16745] | 7 | <antcall target="unzip-packages" />
|
---|
| 8 | <antcall target="get-winbin" />
|
---|
| 9 | <antcall target="insert-perl" />
|
---|
| 10 | <antcall target="compile-c-code" />
|
---|
[17268] | 11 | <antcall target="compile-uninstaller" /> <!-- from rk2-targets -->
|
---|
[16745] | 12 | <antcall target="build-demo-collection" />
|
---|
[15023] | 13 | </target>
|
---|
| 14 |
|
---|
[16458] | 15 | <target name="checkout-gsdl-gli">
|
---|
[16745] | 16 | <svn>
|
---|
[17898] | 17 | <checkout url="${svn.root}/gsdl/${branch.path}" destPath="${basedir}/compiled"/>
|
---|
| 18 | <checkout url="${svn.root}/gli/${branch.path}" destPath="${basedir}/compiled/gli"/>
|
---|
[16745] | 19 | </svn>
|
---|
[15023] | 20 | </target>
|
---|
| 21 |
|
---|
[16087] | 22 | <target name="unzip-packages">
|
---|
[17898] | 23 | <unzip src="${basedir}/compiled/common-src/packages/windows/crypt/crypt.zip" dest="${basedir}/compiled/common-src/packages/windows/crypt"/>
|
---|
| 24 | <unzip src="${basedir}/compiled/common-src/packages/windows/expat/expat.zip" dest="${basedir}/compiled/common-src/packages/windows/expat"/>
|
---|
| 25 | <unzip src="${basedir}/compiled/common-src/packages/windows/gdbm/gdbm.zip" dest="${basedir}/compiled/common-src/packages/windows/gdbm"/>
|
---|
| 26 | <unzip src="${basedir}/compiled/common-src/packages/windows/stlport/stlport.zip" dest="${basedir}/compiled/common-src/packages/windows/stlport"/>
|
---|
| 27 | <unzip src="${basedir}/compiled/common-src/indexers/packages/windows/iconv/iconv.zip" dest="${basedir}/compiled/common-src/indexers/packages/windows/iconv"/>
|
---|
[15023] | 28 | </target>
|
---|
[16087] | 29 |
|
---|
| 30 | <target name="get-winbin">
|
---|
[16745] | 31 | <if>
|
---|
[17898] | 32 | <bool><not><available file="${basedir}/compiled/bin/windows"/></not></bool>
|
---|
| 33 | <svn><export srcUrl="${svn.root}/other-projects/trunk/winbin/bin" destPath="${basedir}/compiled/bin/windows" revision="${branch.revision}"/></svn>
|
---|
[16087] | 34 | </if>
|
---|
[15023] | 35 | </target>
|
---|
| 36 |
|
---|
[16087] | 37 | <target name="insert-perl">
|
---|
[17898] | 38 | <mkdir dir="${basedir}/compiled/bin/windows"/>
|
---|
| 39 | <delete dir="${basedir}/compiled/bin/windows/perl"/>
|
---|
| 40 | <unzip src="${wirk2.home}/resources/perl.zip" dest="${basedir}/compiled/bin/windows"/>
|
---|
[15023] | 41 | </target>
|
---|
| 42 |
|
---|
[16087] | 43 | <target name="compile-c-code">
|
---|
[17898] | 44 | <copy file="${wirk2.home}/resources/compile.bat" todir="${basedir}/compiled" overwrite="true"/>
|
---|
| 45 | <exec dir="${basedir}/compiled" executable="${basedir}/compiled/compile.bat" />
|
---|
| 46 | <move file="${basedir}/compiled/server.exe" todir="${basedir}/compiled/bin/windows"/>
|
---|
| 47 | <move todir="${basedir}/compiled/bin/windows">
|
---|
| 48 | <fileset dir="${basedir}/compiled/cgi-bin" includes="library.exe,oaiserver.exe"/>
|
---|
[16745] | 49 | </move>
|
---|
[16087] | 50 | </target>
|
---|
| 51 |
|
---|
| 52 | <target name="build-demo-collection">
|
---|
[16745] | 53 | <!-- the envs on these execs simulate the environment when you run setup.bat -->
|
---|
[17898] | 54 | <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl.exe">
|
---|
[16745] | 55 | <arg line="bin\script\import.pl --removeold demo"/>
|
---|
[17898] | 56 | <env key="GSDLHOME" value="${basedir}/compiled"/>
|
---|
| 57 | <env key="GSDLCOLLECTDIR" value="${basedir}/compiled/collect"/>
|
---|
[16745] | 58 | <env key="GSDLOS" value="windows"/>
|
---|
[17898] | 59 | <env key="PATH" value="${basedir}\compiled\bin\windows\perl\bin;${basedir}\compiled\bin\windows;${basedir}\compiled\bin\script"/>
|
---|
[16745] | 60 | </exec>
|
---|
[17898] | 61 | <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl.exe">
|
---|
[16745] | 62 | <arg line="bin\script\buildcol.pl --removeold demo"/>
|
---|
[17898] | 63 | <env key="GSDLHOME" value="${basedir}/compiled"/>
|
---|
| 64 | <env key="GSDLCOLLECTDIR" value="${basedir}/compiled/collect"/>
|
---|
[16745] | 65 | <env key="GSDLOS" value="windows"/>
|
---|
[17898] | 66 | <env key="PATH" value="${basedir}\compiled\bin\windows\perl\bin;${basedir}\compiled\bin\windows;${basedir}\compiled\bin\script"/>
|
---|
[16745] | 67 | </exec>
|
---|
| 68 |
|
---|
[17898] | 69 | <delete dir="${basedir}/compiled/collect/demo/index"/>
|
---|
| 70 | <move file="${basedir}/compiled/collect/demo/building" tofile="${basedir}/compiled/collect/demo/index"/>
|
---|
[15023] | 71 | </target>
|
---|
| 72 |
|
---|
[16194] | 73 | </project>
|
---|