Changeset 20721


Ignore:
Timestamp:
2009-09-26T19:07:24+12:00 (13 years ago)
Author:
oranfry
Message:

created the merged rk2

Location:
release-kits
Files:
21 added
4 edited

Legend:

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

    r18929 r20721  
    4343    </target>
    4444
    45     <target name="add-static-to-configure-in">
    46         <rsr
    47             file="${basedir}/compiled/configure.in"
    48             pattern="^LDFLAGS=.*$"
    49             replacement="LDFLAGS=-static" />
    50         <exec dir="${basedir}/compiled" executable="autoconf" output="${basedir}/compiled/configure"><arg value="configure.in"/></exec>
    51     </target>
    52 
    53     <target name="set-environment-in-packages-configure">
    54         <rsr
    55             file="${basedir}/compiled/common-src/packages/configure"
    56             pattern="^ENVIRONMENT=.*$"
    57             replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
    58         <rsr
    59             file="${basedir}/compiled/build-src/packages/configure"
    60             pattern="^ENVIRONMENT=.*$"
    61             replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
    62     </target>
    63 
    64     <target name="run-configure">
    65         <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure" failonerror="true">
    66             <arg line="--enable-apache-httpd"/>
    67             <env key="LDFLAGS" value="-static"/>
    68         </exec>
    69     </target>
    70 
    71     <target name="makefiles-add-static">
    72         <rsr
    73             file="${basedir}/compiled/build-src/packages/wv/wv-gs/Makefile"
    74             pattern="^LDFLAGS =.*$"
    75             replacement="LDFLAGS = -static" />
    76         <rsr
    77             file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile"
    78             pattern="^LDFLAGS =.*$"
    79             replacement="LDFLAGS = -static" />
    80         <rsr
    81             file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile"
    82             pattern="^LDFLAGS =.*$"
    83             replacement="LDFLAGS = -static" />
    84         <rsr
    85             file="${basedir}/compiled/build-src/packages/rtftohtml/rtftohtml_src/Makefile"
    86             pattern="(-o rtftohtml.{2}EXEEXT.{1})"
    87             replacement="$1 -static" />
    88     </target>
    89 
    90     <target name="run-make">
    91         <exec dir="${basedir}/compiled" executable="make" failonerror="true"/>
    92     </target>
    93 
    94 
    95     <target name="run-make-install">
    96         <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="install"/></exec>
    97     </target>
    98 
    99     <target name="run-make-apache-for-dist">
    100         <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="apache-for-dist"/></exec>
    101     </target>
    102 
    103     <target name="strip-execs">
    104         <exec dir="${basedir}/compiled/bin/linux" executable="find" failonerror="true">
    105             <arg line="! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
    106         </exec>
    107     </target>
    108 
    109     <target name="build-demo-collection">
    110         <exec dir="${basedir}/compiled" executable="${lirk2.home}/resources/build-demo.sh" failonerror="true"/>
    111     </target>
    11245
    11346
  • release-kits/mark2/ant-scripts/compile.xml

    r19777 r20721  
    4141    </target>
    4242
    43     <target name="run-configure">
    44         <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure">
    45             <arg value="--enable-apache-httpd"/>
    46         </exec>
    47     </target>
    48 
    49     <target name="tweak-makefiles">
    50         <rsr file="${basedir}/compiled/runtime-src/src/recpt/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" />
    51         <rsr file="${basedir}/compiled/runtime-src/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" />
    52     </target>
    53 
    54     <target name="run-make">
    55         <exec dir="${basedir}/compiled" executable="make"/>
    56     </target>
    57 
    58     <target name="run-make-install">
    59         <exec dir="${basedir}/compiled" executable="make"><arg value="install"/></exec>
    60     </target>
    61 
    62     <target name="run-make-apache-for-dist">
    63         <exec dir="${basedir}/compiled" executable="make"><arg value="apache-for-dist"/></exec>
    64     </target>
    65 
    66     <target name="strip-execs">
    67         <exec dir="${basedir}/compiled/bin/darwin" executable="find">
    68             <arg line=". ! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
    69         </exec>
    70     </target>
    71 
    72     <target name="build-demo-collection">
    73         <exec dir="${basedir}/compiled" executable="${mark2.home}/resources/build-demo.sh"/>
    74     </target>
    7543
    7644</project>
  • release-kits/shared/greenstone2/ant-scripts/rk2-targets.xml

    r20401 r20721  
    125125    <target name="compile-gli">
    126126
    127         <!-- default to sh -->
    128         <property name="script.format" value="sh"/>
     127        <if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
     128            <property name="script.format" value="sh"/>
     129        <else><if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
     130            <property name="script.format" value="bat"/>
     131        </if></else></if>
    129132       
    130133        <echo>Compiling gli...</echo>
  • release-kits/wirk2/ant-scripts/compile.xml

    r19901 r20721  
    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>
    5028   
    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>
    7129   
    7230</project>
Note: See TracChangeset for help on using the changeset viewer.