Changeset 18766


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

cdrom component producing code for windows, not quite there but a good starting point

File:
1 edited

Legend:

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

    r18049 r18766  
    66    <!-- 1st level -->
    77    <target name="create-components">
    8         <antcall target="prepare-components" />
    9         <antcall target="compress-components" />
     8        <antcall target="prepare-components"/>
     9        <antcall target="compress-components"/>
     10        <antcall target="produce-cd-components"/>
    1011    </target>
    1112   
     
    138139        <zip destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.zip" basedir="components/tmp/sourcecode" compress="true"/>
    139140    </target>
     141
     142    <!--
     143        cd components
     144        produce components for cdrom distributions, to be picked up and used by cdrk2 release kit
     145        split components into windows only files (windows) and general files (all)
     146    -->
     147    <target name="produce-cd-components">
     148        <delete dir="components/tmp/cdrom"/>
     149        <mkdir dir="components/tmp/cdrom"/>
     150
     151        <!-- core -->
     152        <mkdir dir="components/tmp/cdrom/core/all"/>
     153        <mkdir dir="components/tmp/cdrom/core/windows"/>
     154        <copy todir="components/tmp/cdrom/core/all" overwrite="true">
     155            <fileset dir="components/tmp/core"/>
     156        </copy>
     157        <move todir="components/tmp/cdrom/core/windows" overwrite="true">
     158            <fileset dir="components/tmp/cdrom/core/all">
     159                <include name="bin/windows"/>
     160                <include name="bin/windows/**/*"/>
     161                <include name="*.bat"/>
     162            </fileset>
     163        </move>
     164
     165        <!-- imagemagick (all windows specific) -->
     166        <mkdir dir="components/tmp/cdrom/imagemagick/windows"/>
     167        <copy todir="components/tmp/cdrom/imagemagick/windows" overwrite="true">
     168            <fileset dir="components/tmp/imagemagick"/>
     169        </copy>
     170
     171
     172        <!-- sourcecode -->
     173        <mkdir dir="components/tmp/cdrom/sourcecode/all"/>
     174        <mkdir dir="components/tmp/cdrom/sourcecode/windows"/>
     175        <copy todir="components/tmp/cdrom/sourcecode/all" overwrite="true">
     176            <fileset dir="components/tmp/sourcecode"/>
     177        </copy>
     178        <move todir="components/tmp/cdrom/sourcecode/windows" overwrite="true">
     179            <fileset dir="components/tmp/cdrom/sourcecode/all">
     180                <include name="win32.mak"/>
     181            </fileset>
     182        </move>
     183
     184        <tar destfile="products/cdrom.tar.gz" basedir="components/tmp/cdrom" compression="gzip"/>
     185       
     186    </target>
    140187       
    141188</project>
Note: See TracChangeset for help on using the changeset viewer.