Ignore:
Timestamp:
2009-05-14T09:30:01+12:00 (15 years ago)
Author:
oranfry
Message:

readmes will now make it into distribution, also fixed mark2 to produce cdrom components, and removed unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/mark2/ant-scripts/create-components.xml

    r19396 r19456  
    88        <antcall target="prepare-components" />
    99        <antcall target="compress-components" />
     10        <antcall target="produce-cd-components"/>
    1011    </target>
    1112
     
    4445                <include name="**/*"/>
    4546
    46                 <!-- exclude sourcecode + imagemagick + build files -->
    47                 <exclude name="common-src"/>
    48                 <exclude name="common-src/**/*"/>
    49                 <exclude name="runtime-src"/>
    50                 <exclude name="runtime-src/**/*"/>
    51                 <exclude name="build-src"/>
    52                 <exclude name="build-src/**/*"/>
     47                <!-- exclude imagemagick + ghostscript -->
    5348                <exclude name="bin/darwin/imagemagick"/>
    5449                <exclude name="bin/darwin/imagemagick/**/*"/>
    5550                <exclude name="bin/darwin/ghostscript"/>
    5651                <exclude name="bin/darwin/ghostscript/**/*"/>
    57 
    58                 <exclude name="acconfig.h"/>
    59                 <exclude name="aclocal.m4"/>
    60                 <exclude name="config.sub"/>
    61                 <exclude name="configtest.pl"/>
    62                 <exclude name="configure"/>
    63                 <exclude name="configure.in"/>
    64                 <exclude name="install-sh"/>
    65                 <exclude name="Makefile.in"/>
    66                 <exclude name="micotest.cpp"/>
    67                 <exclude name="config.h.in"/>
    68                 <exclude name="Install.txt"/>
    69 
    70                 <exclude name="README*.txt"/>
    71                 <include name="READMEen.txt"/>
    72 
    7352
    7453            </fileset>
     
    7958    <target name="compress-core-component">
    8059        <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
    81     </target>
    82 
    83     <!-- sourcecode -->
    84     <target name="prepare-sourcecode-component">
    85 
    86         <delete dir="components/tmp/sourcecode"/>
    87         <mkdir dir="components/tmp/sourcecode"/>
    88 
    89         <exec dir="${basedir}" executable="cp">
    90             <arg line="-r distributions/web/common-src distributions/web/build-src distributions/web/runtime-src components/tmp/sourcecode"/>
    91         </exec>
    92         <exec dir="distributions/web" executable="cp">
    93             <arg line="acconfig.h aclocal.m4 config.guess config.sub configtest.pl configure configure.in install-sh Makefile.in micotest.cpp config.h.in Install.txt ${basedir}/components/tmp/sourcecode"/>
    94         </exec>
    95                
    96         <mkdir dir="products"/>
    97 
    98         <!-- create a script to create the tar -->
    99         <echo output="create-sourcecode-component.sh">
    100         tar -czf ../../../products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz *
    101         </echo>
    102         <chmod perm="+x" file="create-sourcecode-component.sh"/>
    103 
    104         <!-- run it -->
    105         <exec dir="components/tmp/sourcecode" executable="/bin/bash">
    106             <arg line="${basedir}/create-sourcecode-component.sh"/>
    107         </exec>
    108 
    109         <!-- remove it -->
    110         <delete file="create-sourcecode-component.sh"/>
    111 
    112     </target>
    113 
    114     <target name="compress-sourcecode-component">
    115         <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
    11660    </target>
    11761
     
    15498    </target>
    15599
     100    <!--
     101        cd components
     102        produce components for cdrom distributions, to be picked up and used by cdrk2 release kit
     103        split components into mac only files (mac) and general files (all)
     104    -->
     105    <target name="produce-cd-components">
     106        <delete dir="components/tmp/cdrom"/>
     107        <mkdir dir="components/tmp/cdrom"/>
     108
     109        <!-- core -->
     110        <mkdir dir="components/tmp/cdrom/core/all"/>
     111        <mkdir dir="components/tmp/cdrom/core/mac"/>
     112        <copy todir="components/tmp/cdrom/core/all" overwrite="true">
     113            <fileset dir="components/tmp/core"/>
     114        </copy>
     115        <move todir="components/tmp/cdrom/core/mac" overwrite="true">
     116            <fileset dir="components/tmp/cdrom/core/all">
     117                <include name="bin/darwin"/>
     118                <include name="bin/darwin/**/*"/>
     119                <include name="bin/windows"/>
     120                <include name="bin/windows/**/*"/>
     121                <include name="apache-httpd/darwin"/>
     122                <include name="apache-httpd/darwin/**/*"/>
     123                <include name="*.sh"/>
     124                <include name="*.csh"/>
     125                <include name="*.bash"/>
     126            </fileset>
     127        </move>
     128
     129        <!-- imagemagick (completely mac specific) -->
     130        <mkdir dir="components/tmp/cdrom/imagemagick/mac"/>
     131        <copy todir="components/tmp/cdrom/imagemagick/mac" overwrite="true">
     132            <fileset dir="components/tmp/imagemagick"/>
     133        </copy>
     134
     135        <!-- ghostscript (completely mac specific) -->
     136        <mkdir dir="components/tmp/cdrom/ghostscript/mac"/>
     137        <copy todir="components/tmp/cdrom/ghostscript/mac" overwrite="true">
     138            <fileset dir="components/tmp/ghostscript"/>
     139        </copy>
     140
     141        <!-- archive the cd components -->
     142        <tar destfile="products/cdrom-components-${version}-mac.tar.gz" basedir="components/tmp/cdrom" compression="gzip"/>
     143       
     144    </target>
     145
     146
    156147</project>
Note: See TracChangeset for help on using the changeset viewer.