Changeset 17652 for release-kits/mark3


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

started source releases

Location:
release-kits/mark3
Files:
4 edited

Legend:

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

    r17455 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="create-ant-component" />
    9         <antcall target="create-tomcat-component" />
     8        <antcall target="prepare-components" />
     9        <antcall target="compress-components" />
    1010    </target>
    1111
    12     <target name="create-core-component">
     12    <!-- 2nd level -->
     13    <target name="prepare-components">
    1314        <antcall target="prepare-core-component" />
    14         <antcall target="compress-core-component" />
     15        <antcall target="prepare-sourcecode-component" />
     16        <antcall target="prepare-ant-component" />
     17        <antcall target="prepare-tomcat-component" />
     18        <antcall target="prepare-sourcecode-core-component" />
    1519    </target>
    1620
    17     <target name="create-sourcecode-component">
    18         <antcall target="prepare-sourcecode-component" />
    19         <antcall target="compress-sourcecode-component" /> 
     21    <target name="compress-components">
     22        <antcall target="compress-core-component" />
     23        <antcall target="compress-sourcecode-component" />
     24        <antcall target="compress-ant-component" />
     25        <antcall target="compress-tomcat-component" />
     26        <antcall target="compress-sourcecode-core-component" />
    2027    </target>
    21        
    22     <target name="create-ant-component">
    23         <antcall target="prepare-ant-component" />
    24         <antcall target="compress-ant-component" />
    25     </target>
    26        
    27     <target name="create-tomcat-component">
    28         <antcall target="prepare-tomcat-component" />
    29         <antcall target="compress-tomcat-component" /> 
    30     </target>
    31    
     28
     29    <!-- 3rd level -->
    3230    <target name="prepare-core-component">
    3331
     
    124122        <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>
    125123    </target>   
     124
     125    <target name="prepare-sourcecode-core-component">
     126        <delete dir="components/tmp/sourcecode-core"/>
     127        <mkdir dir="components/tmp/sourcecode-core"/>
     128
     129        <copy todir="components/tmp/sourcecode-core" overwrite="true">
     130            <fileset dir="distribution/source">
     131                <include name="gli/**/*"/>
     132                <include name="docs/**/*"/>
     133                <include name="resources/**/*"/>
     134                <include name="web/**/*"/>
     135                <include name="gs2build/etc/**/*"/>
     136                <include name="gs2build/setup.bash"/>
     137                <include name="build.xml"/>
     138                <include name="build.properties"/>
     139                <include name="*.sh"/>
     140                <include name="*.txt"/>
     141            </fileset>
     142        </copy>
     143        <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
     144    </target>
     145   
     146    <target name="compress-sourcecode-core-component">
     147        <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
     148    </target>
     149
    126150   
    127151</project>
  • release-kits/mark3/ant-scripts/create-distribution.xml

    r17523 r17652  
    33
    44    <target name="create-distribution">
     5
    56        <!-- create distribution -->
    67        <antcall target="export-greenstone3-gli" />
     8        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distribution/greenstone3"/></antcall>
     9        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/></antcall>
     10        <antcall target="insert-user-manual"/>
    711
    8         <antcall target="greenstone3-set-version-numbers">
    9             <param name="greenstone3basedir" value="${basedir}/distribution/greenstone3"/>
    10         </antcall>
    11 
    12         <antcall target="gli-set-version-numbers">
    13             <param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/>
    14         </antcall>
     12        <antcall target="copy-web-to-source-greenstone3" /> <!-- from gs3-targets -->
    1513
    1614        <ant target="create-distribution-1" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
     
    3028
    3129        <antcall target="copy-over-build-xml" />
    32         <antcall target="insert-user-manual"/>
    3330        <antcall target="insert-compiled-binaries"/>
    3431        <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk3-targets -->
    35         <antcall target="rename-build-xml-for-transit"/>
    36         <antcall target="strip-svn-dirs"><param name="dir" value="distribution/greenstone3"/></antcall> <!-- from init -->
     32        <antcall target="strip-svn-dirs"><param name="dir" value="distribution"/></antcall> <!-- from init -->
    3733    </target>
    3834
     
    4440            <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli"/>
    4541        </svn>
     42        <copy todir="distribution/source"><fileset dir="distribution/greenstone3"/></copy>
    4643    </target>
    4744
  • release-kits/mark3/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"
     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@"
    5160            displayText=""
     61            defaultValue="true"
    5262            force="true"/>
     63        <!-- end source release core -->
    5364
    5465        <!-- start bundled components -->
     
    7687    </page>
    7788
     89    <!-- start bundled components -->
    7890    <page type="input" name="tomcat-config" ifProperty="(${Installing Tomcat}==true)" displayText="">
    7991
     
    8395
    8496    </page>
     97    <!-- end bundled components -->
    8598
    8699    <page type="progress" name="progress" showTargets="true" displayText=""/>
  • release-kits/mark3/installer/build.xml

    r17609 r17652  
    3434        <delete file="core.comp"/>
    3535
    36         <!-- rename greenstone3-build.xml back to build.xml -->
    37         <move file="${installDir}/greenstone3-build.xml" tofile="${installDir}/build.xml" overwrite="true"/>
    38 
    3936        <echo message="Setting Binaries to Executable"/>
    4037        <chmod dir="${installDir}" includes="*.sh" perm="775"/>
     
    6360        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />
    6461
    65 
    66         <!-- in the gs3-setup.sh file, set ANT_HOME and put it in PATH (no need anymore)-->
    67         <!--<echo>In the gs3-setup.sh file, set ANT_HOME and put it in PATH</echo>
    68         <exec executable="echo" output="${installDir}/gs3-setup.sh" append="true">
    69             <arg line="export ANT_HOME=${installDir}/packages/ant; export PATH=$ANT_HOME/bin:$PATH;"/>
    70         </exec>-->
    71 
    72         <!-- delete unneeded files -->     
    73         <echo message="Deleting some extraneous files"/>
    74         <delete dir="${installDir}/resources/icons"/>
    75         <delete file="${installDir}/resources/*.png"/>
    76 
    7762        <echo>Creating installation properties file</echo>
    7863        <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo>
     
    8166
    8267    </target>
     68
     69    <!-- sourcecode core system -->
     70    <target name="Installing Source Code Core">
     71
     72        <echo>Installing Source Code Core</echo>
     73        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode-core.lzma"/></patternset></unzip>
     74        <sevenzip task="decode" input="${basedir}/sourcecode-core.lzma" output="${basedir}/sourcecode-core.comp"/>
     75        <delete file="sourcecode-core.lzma"/>
     76        <unzip src="${basedir}/sourcecode-core.comp" dest="${installDir}"/>
     77        <delete file="sourcecode-core.comp"/>
     78
     79        <echo>Setting up global properties</echo>
     80        <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>
     81        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />
     82        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" />
     83        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" />
     84
     85        <echo>Setting up log4j properties</echo>
     86        <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>
     87        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />
     88
     89        <echo>Creating installation properties file</echo>
     90        <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo>
     91
     92
     93    </target>
     94
    8395
    8496    <!-- Source -->
Note: See TracChangeset for help on using the changeset viewer.