Ignore:
Timestamp:
2009-05-20T10:17:35+12:00 (15 years ago)
Author:
oranfry
Message:

work on creating the cdrom installers and putting them with the cdrom components

File:
1 edited

Legend:

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

    r19510 r19537  
    77        <antcall target="compile-wrapper-web"/>
    88        <antcall target="compile-wrapper-cdrom"/>
     9        <antcall target="archive-cdrom-components-and-installer"/>
    910    </target>
    1011
     
    7172
    7273    <target name="compile-wrapper-web" depends="calculate-object-sizes">
    73 
     74        <mkdir dir="products"/>
    7475        <echo level="info">creating wrapper header file</echo>
    7576        <delete file="wrapper.h"/>
     
    8586        <echo level="info">link the compiled code and bundled files</echo>
    8687        <exec executable="g++" dir="${basedir}/wrapped-installer">
    87             <arg line="-static -static-libgcc -o ../products/Greenstone-${version}-linux.bin wrapper.o libsearch4j.o greenstone2.jar.o java.o"/>
     88            <arg line="-static -static-libgcc -o ../products/Greenstone-${version}-linux wrapper.o libsearch4j.o greenstone2.jar.o java.o"/>
    8889        </exec>
    8990
     
    9192
    9293    <target name="compile-wrapper-cdrom" depends="calculate-object-sizes">
    93 
    9494        <echo level="info">creating wrapper header file</echo>
    9595        <delete file="wrapper.h"/>
     
    105105        <echo level="info">link the compiled code and bundled files</echo>
    106106        <exec executable="g++" dir="${basedir}/wrapped-installer">
    107             <arg line="-static -static-libgcc -o ../products/cdrom-linux.bin wrapper.o libsearch4j.o cdrom.jar.o java.o"/>
     107            <arg line="-static -static-libgcc -o ../wrapped-installer/cdrom-linux wrapper.o libsearch4j.o cdrom.jar.o java.o"/>
    108108        </exec>
    109109
    110110    </target>
    111111
     112    <target name="archive-cdrom-components-and-installer">
     113        <mkdir dir="products"/>
     114        <tar destfile="products/cdrom-components-${version}-linux.tar.gz" compression="gzip">
     115            <tarfileset dir="components/tmp"><include name="cdrom/**/*"/></tarfileset>
     116            <tarfileset dir="wrapped-installer"><include name="cdrom-linux"/></tarfileset>
     117        </tar>
     118    </target>
     119
    112120</project>
Note: See TracChangeset for help on using the changeset viewer.