Ignore:
Timestamp:
03/24/09 12:19:19 (12 years ago)
Author:
oranfry
Message:

fail if the compilation fails

File:
1 edited

Legend:

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

    r18703 r18765  
    5555
    5656    <target name="run-configure">
    57         <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure">
     57        <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure" failonerror="true">
    5858            <arg line="--enable-apache-httpd"/>
    5959            <env key="LDFLAGS" value="-static"/>
     
    8181
    8282    <target name="run-make">
    83         <exec dir="${basedir}/compiled" executable="make"/>
     83        <exec dir="${basedir}/compiled" executable="make" failonerror="true"/>
    8484    </target>
    8585
    8686
    8787    <target name="run-make-install">
    88         <exec dir="${basedir}/compiled" executable="make"><arg value="install"/></exec>
     88        <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="install"/></exec>
    8989    </target>
    9090
    9191    <target name="copy-library-oai">
    92         <exec executable="mv"><arg line="${basedir}/compiled/cgi-bin/library.cgi ${basedir}/compiled/bin/linux/library.cgi"/></exec>
    93         <exec executable="mv"><arg line="${basedir}/compiled/cgi-bin/oaiserver.cgi ${basedir}/compiled/bin/linux/oaiserver.cgi"/></exec>
     92        <exec executable="mv" failonerror="true"><arg line="${basedir}/compiled/cgi-bin/library.cgi ${basedir}/compiled/bin/linux/library.cgi"/></exec>
     93        <exec executable="mv" failonerror="true"><arg line="${basedir}/compiled/cgi-bin/oaiserver.cgi ${basedir}/compiled/bin/linux/oaiserver.cgi"/></exec>
    9494    </target>
    9595
    9696    <target name="strip-execs">
    97         <exec dir="${basedir}/compiled/bin/linux" executable="find">
     97        <exec dir="${basedir}/compiled/bin/linux" executable="find" failonerror="true">
    9898            <arg line="! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
    9999        </exec>
     
    101101
    102102    <target name="build-demo-collection">
    103         <exec dir="${basedir}/compiled" executable="${lirk2.home}/resources/build-demo.sh"/>
     103        <exec dir="${basedir}/compiled" executable="${lirk2.home}/resources/build-demo.sh" failonerror="true"/>
    104104    </target>
    105105
Note: See TracChangeset for help on using the changeset viewer.