Changeset 17652 for release-kits/mark2


Ignore:
Timestamp:
2008-10-31T15:08:31+13:00 (15 years ago)
Author:
oranfry
Message:

started source releases

Location:
release-kits/mark2
Files:
4 edited

Legend:

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

    r17453 r17652  
    33
    44    <!-- create components from the distribution folder -->
     5
     6    <!-- 1st level -->
    57    <target name="create-components">
    6         <antcall target="create-core-component" />
    7         <antcall target="create-sourcecode-component" />
     8        <antcall target="prepare-components" />
     9        <antcall target="compress-components" />
     10    </target>
     11
     12    <!-- 2nd level -->
     13    <target name="prepare-components">
     14        <antcall target="prepare-core-component" />
     15        <antcall target="prepare-sourcecode-component" />
     16        <antcall target="prepare-sourcecode-core-component" />
    817    </target>
    918   
     19    <target name="compress-components">
     20        <antcall target="compress-core-component" />
     21        <antcall target="compress-sourcecode-component" />
     22        <antcall target="compress-sourcecode-core-component" />
     23    </target>
     24
     25    <!-- 3rd level -->
    1026    <target name="create-core-component">
    1127        <antcall target="prepare-core-component" />
     
    2743                <include name="**/*"/>
    2844
    29                 <!-- sourcecode -->
     45                <!-- exclude sourcecode -->
     46                <exclude name="common-src"/>
    3047                <exclude name="common-src/**/*"/>
     48                <exclude name="runtime-src"/>
    3149                <exclude name="runtime-src/**/*"/>
     50                <exclude name="build-src"/>
    3251                <exclude name="build-src/**/*"/>
    3352
     
    6180    </target>
    6281   
     82    <target name="prepare-sourcecode-core-component">
     83        <delete dir="components/tmp/sourcecode-core"/>
     84        <mkdir dir="components/tmp/sourcecode-core"/>
     85
     86        <copy todir="components/tmp/sourcecode-core" overwrite="true">
     87            <fileset dir="distributions/source">
     88                <include name="macros/**/*"/>
     89                <include name="images/**/*"/>
     90                <include name="etc/**/*"/>
     91                <include name="gli/**/*"/>
     92                <include name="collect/**/*"/>
     93                <include name="doc/**/*"/>
     94                <include name="setup.bash"/>
     95            </fileset>
     96        </copy>
     97        <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
     98    </target>
     99   
     100    <target name="compress-sourcecode-core-component">
     101        <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
     102    </target>
     103
    63104</project>
  • release-kits/mark2/ant-scripts/create-distribution.xml

    r17523 r17652  
    33
    44    <target name="create-distribution">
     5
    56        <antcall target="export-gsdl-gli" />
    67        <antcall target="dist-set-version" />
    7         <antcall target="gli-set-version-numbers">
    8             <param name="glibasedir" value="${basedir}/distributions/web/gli"/>
    9         </antcall>
     8        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall>
     9        <antcall target="drop-in-docs" />
     10        <antcall target="tweak-files" />
     11        <antcall target="remove-unneeded-files-1" />
     12
     13        <antcall target="copy-web-to-source" /> <!-- from init -->
     14
    1015        <antcall target="drop-in-binaries" />
    1116        <antcall target="drop-in-demo-collection" />
    12         <antcall target="drop-in-docs" />
    1317        <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk2-targets -->
    14         <antcall target="insert-export-to-cd-package"/> <!-- from rk2-targets -->
     18        <antcall target="insert-export-to-cd-package"/>     <!-- from rk2-targets -->
     19        <antcall target="export-imagemagick-linux-binaries" />
    1520        <antcall target="compile-gli" />
    16         <antcall target="tweak-files" />
     21        <antcall target="remove-unneeded-files-2" />
     22
    1723    </target>
    1824
     
    2430            <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/>
    2531        </svn>
     32        <copy todir="distributions/source"><fileset dir="distributions/web"/></copy>
    2633    </target>
    2734
     
    105112        <rsr file="${basedir}/distributions/web/Support.htm" pattern="^(\s*&lt;input.* name=&quot;gsdl version&quot;.* value=&quot;).*(&quot;.*&gt;)" replacement="$1${version}$2"/>
    106113
    107         <echo level="info">Removing signed gatherer</echo>
    108         <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
     114    </target>
    109115
    110         <echo level="info">Removing some unneeded stuff</echo>
     116    <target name="remove-unneeded-files-1">
    111117        <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
    112118        <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete>
    113119        <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete>
     120        <delete dir="${basedir}/distributions/web/common-src/packages/windows"/>
    114121    </target>
    115122
     123    <target name="remove-unneeded-files-2">
     124        <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
     125    </target>
     126
     127
    116128</project>
  • release-kits/mark2/installer/antinstall-config.xml

    r17597 r17652  
    4545        <comment name="choose-components"/>
    4646
     47        <!-- start binary release core -->
    4748        <target
    4849            target="Installing Core System"
    4950            diskRequirement="@component.size.core@"
     51            displayText=""
    5052            defaultValue="true"
    51             force="true"
    52             displayText=""/>
     53            force="true"/>
     54        <!-- end binary release core -->
     55
     56        <!-- start source release core -->
     57        <target
     58            target="Installing Source Code Core"
     59            diskRequirement="@component.size.sourcecode-core@"
     60            displayText=""
     61            defaultValue="true"
     62            force="true"/>
     63        <!-- end source release core -->
    5364
    5465        <!-- start sourcecode -->
  • release-kits/mark2/installer/build.xml

    r17611 r17652  
    8787    </target>
    8888
     89    <!-- sourcecode core system -->
     90    <target name="Installing Source Code Core">
     91
     92        <echo>Installing Source Code Core</echo>
     93        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode-core.lzma"/></patternset></unzip>
     94        <sevenzip task="decode" input="${basedir}/sourcecode-core.lzma" output="${basedir}/sourcecode-core.comp"/>
     95        <delete file="sourcecode-core.lzma"/>
     96        <unzip src="${basedir}/sourcecode-core.comp" dest="${installDir}"/>
     97        <delete file="sourcecode-core.comp"/>
     98
     99        <echo>Set the installation locale in config files</echo>
     100        <rsr file="${installDir}/setup.bash" pattern="^gsdllang=.*" replacement="gsdllang=${language}"/>
     101        <rsr file="${installDir}/gli/gli.sh" pattern="^glilang=.*" replacement="glilang=${language}"/>
     102        <rsr file="${installDir}/gli/gems.sh" pattern="^glilang=.*" replacement="glilang=${language}"/>
     103
     104        <rsr
     105            file="${installDir}/gli/classes/xml/config.xml"
     106            pattern="(&lt;Argument name=&quot;general.locale&quot;&gt;).*(&lt;/Argument&gt;)"
     107            replacement="$1${language}$2"/>
     108
     109        <echo file="${installDir}/etc/main.cfg" append="true"
     110            >cgiarg          shortname=l argdefault=${language}</echo>
     111
     112        <rsr file="${installDir}/etc/main.cfg" pattern="^status .*" replacement="status enabled"/>
     113
     114        <echo>Creating installation properties file</echo>
     115        <echo file="${installDir}/etc/installation.properties">#this file is just a placeholder for now</echo>
     116
     117    </target>
     118
     119
     120
    89121    <!-- Source -->
    90122    <target name="Installing Source Code" depends="">
Note: See TracChangeset for help on using the changeset viewer.