Changeset 20726


Ignore:
Timestamp:
2009-09-28T13:53:06+13:00 (12 years ago)
Author:
oranfry
Message:

reverting wirk2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/wirk2/ant-scripts/compile.xml

    r20721 r20726  
    2626    </target>
    2727
     28    <target name="unzip-packages">
     29        <unzip src="${basedir}/compiled/common-src/packages/windows/crypt/crypt.zip" dest="${basedir}/compiled/common-src/packages/windows/crypt"/>
     30        <unzip src="${basedir}/compiled/common-src/packages/windows/expat/expat.zip" dest="${basedir}/compiled/common-src/packages/windows/expat"/>
     31        <unzip src="${basedir}/compiled/common-src/packages/windows/stlport/stlport.zip" dest="${basedir}/compiled/common-src/packages/windows/stlport"/>
     32        <unzip src="${basedir}/compiled/common-src/indexers/packages/windows/iconv/iconv.zip" dest="${basedir}/compiled/common-src/indexers/packages/windows/iconv"/>
     33        <untar src="${basedir}/compiled/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz" dest="${basedir}/compiled/common-src/packages/sqlite" compression="gzip"/>
     34    </target>
     35
     36    <target name="get-winbin">
     37        <if>
     38            <bool><not><available file="${basedir}/compiled/bin/windows"/></not></bool>
     39            <svn><export srcUrl="${svn.root}/other-projects/trunk/winbin/bin" destPath="${basedir}/compiled/bin/windows" revision="${branch.revision}"/></svn>
     40        </if>
     41    </target>
     42
     43    <target name="compile-c-code">
     44        <copy file="${wirk2.home}/resources/compile.bat" todir="${basedir}/compiled" overwrite="true"/>
     45        <exec dir="${basedir}/compiled" executable="${basedir}/compiled/compile.bat" />
     46        <mkdir dir="products"/>
     47        <copy file="${basedir}/compiled/server.exe" tofile="${basedir}/products/server-${version}.exe"/>
     48        <move file="${basedir}/compiled/server.exe" todir="${basedir}/compiled/bin/windows"/>
     49    </target>
    2850   
     51    <target name="build-demo-collection">
     52        <!-- the envs on these execs simulate the environment when you run setup.bat -->
     53        <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl.exe">
     54            <arg line="bin\script\import.pl --removeold demo"/>
     55            <env key="GSDLHOME" value="${basedir}/compiled"/>
     56            <env key="GSDLCOLLECTDIR" value="${basedir}/compiled/collect"/>
     57            <env key="GSDLOS" value="windows"/>
     58            <env key="PATH" value="${basedir}\compiled\bin\windows\perl\bin;${basedir}\compiled\bin\windows;${basedir}\compiled\bin\script"/>
     59        </exec>
     60        <exec dir="${basedir}/compiled" executable="${basedir}/compiled/bin/windows/perl/bin/perl.exe">
     61            <arg line="bin\script\buildcol.pl --removeold demo"/>
     62            <env key="GSDLHOME" value="${basedir}/compiled"/>
     63            <env key="GSDLCOLLECTDIR" value="${basedir}/compiled/collect"/>
     64            <env key="GSDLOS" value="windows"/>
     65            <env key="PATH" value="${basedir}\compiled\bin\windows\perl\bin;${basedir}\compiled\bin\windows;${basedir}\compiled\bin\script"/>
     66        </exec>
     67       
     68        <delete dir="${basedir}/compiled/collect/demo/index"/>
     69        <move file="${basedir}/compiled/collect/demo/building" tofile="${basedir}/compiled/collect/demo/index"/>
     70    </target>
    2971   
    3072</project>
Note: See TracChangeset for help on using the changeset viewer.