Changeset 17652 for release-kits/lirk3


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

started source releases

Location:
release-kits/lirk3
Files:
4 edited

Legend:

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

    r17645 r17652  
    33
    44    <!-- create components from the distribution folder -->
     5
     6    <!-- 1st level -->
    57    <target name="create-components">
    68        <antcall target="prepare-components" />
     
    810    </target>
    911
     12    <!-- 2nd level -->
    1013    <target name="prepare-components">
    1114        <antcall target="prepare-core-component" />
     
    1417        <antcall target="prepare-tomcat-component" />
    1518        <antcall target="prepare-imagemagick-component" />
    16 
     19        <antcall target="prepare-sourcecode-core-component" />
    1720    </target>
    1821
     
    2326        <antcall target="compress-tomcat-component" />
    2427        <antcall target="compress-imagemagick-component" />
     28        <antcall target="compress-sourcecode-core-component" />
    2529    </target>
    2630
    27    
     31    <!-- 3rd level -->
    2832    <target name="prepare-core-component">
    2933
     
    148152        <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
    149153    </target>
     154
     155    <target name="prepare-sourcecode-core-component">
     156        <delete dir="components/tmp/sourcecode-core"/>
     157        <mkdir dir="components/tmp/sourcecode-core"/>
     158
     159        <copy todir="components/tmp/sourcecode-core" overwrite="true">
     160            <fileset dir="distribution/source">
     161                <include name="gli/**/*"/>
     162                <include name="docs/**/*"/>
     163                <include name="resources/**/*"/>
     164                <include name="web/**/*"/>
     165                <include name="gs2build/etc/**/*"/>
     166                <include name="gs2build/setup.bash"/>
     167                <include name="build.xml"/>
     168                <include name="build.properties"/>
     169                <include name="*.sh"/>
     170                <include name="*.txt"/>
     171            </fileset>
     172        </copy>
     173        <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
     174    </target>
    150175   
     176    <target name="compress-sourcecode-core-component">
     177        <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
     178    </target>
     179
    151180</project>
  • release-kits/lirk3/ant-scripts/create-distribution.xml

    r17645 r17652  
    33
    44    <target name="create-distribution">
     5
    56        <!-- create distribution -->
    67        <antcall target="export-greenstone3-gli" />
    7         <antcall target="greenstone3-set-version-numbers">
    8             <param name="greenstone3basedir" value="${basedir}/distribution/greenstone3"/>
    9         </antcall>
    10         <antcall target="gli-set-version-numbers">
    11             <param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/>
    12         </antcall>
     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"/>
    1311
    14         <!-- create distributions 1, 2 and 3 -->
     12        <antcall target="copy-web-to-source-greenstone3" /> <!-- from gs3-targets -->
     13
    1514        <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" inheritAll="false">
    1615            <property name="app.version" value="${version}"/>
     
    2928
    3029        <antcall target="copy-over-build-xml" />
    31         <antcall target="insert-user-manual"/>
    3230        <antcall target="insert-compiled-binaries"/>
    3331        <antcall target="export-imagemagick-linux-binaries" />
    3432        <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 -->
     33   
     34        <antcall target="strip-svn-dirs"><param name="dir" value="distribution"/></antcall> <!-- from init -->
     35
    3736    </target>
    3837
     
    7271    </target>
    7372
    74     <target name="rename-build-xml-for-transit">
    75         <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/>
    76     </target>
    77 
    7873</project>
  • release-kits/lirk3/installer/antinstall-config.xml

    r17646 r17652  
    5353        <comment name="choose-components"/>
    5454
     55        <!-- start binary release core -->
    5556        <target
    5657            target="Installing Core System"
    5758            diskRequirement="@component.size.core@"
     59            displayText=""
    5860            defaultValue="true"
     61            force="true"/>
     62        <!-- end binary release core -->
     63
     64        <!-- start source release core -->
     65        <target
     66            target="Installing Source Code Core"
     67            diskRequirement="@component.size.sourcecode-core@"
    5968            displayText=""
     69            defaultValue="true"
    6070            force="true"/>
     71        <!-- end source release core -->
    6172
    6273        <!-- start bundled components -->
     
    90101    </page>
    91102
     103    <!-- start bundled components -->
    92104    <page type="input" name="tomcat-config" ifProperty="(${Installing Tomcat}==true)" displayText="">
    93105
     
    97109
    98110    </page>
     111    <!-- end bundled components -->
    99112
    100113    <page type="progress" name="progress" showTargets="true" displayText=""/>
  • release-kits/lirk3/installer/build.xml

    r17646 r17652  
    4242        <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>       
    4343
    44 
    45         <echo>Renaming greenstone3-build.xml back to build.xml</echo>
    46         <move file="${installDir}/greenstone3-build.xml" tofile="${installDir}/build.xml" overwrite="true"/>
    47 
    4844        <echo>Setting Binaries to Executable</echo>
    4945        <chmod dir="${installDir}" includes="*.sh" perm="775"/>
     
    6965        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />
    7066
    71         <echo>Deleting some unneeded files</echo>
    72         <delete dir="${installDir}/resources/icons"/>
    73         <delete file="${installDir}/resources/*.png"/>
    74 
    7567        <echo>Creating installation properties file</echo>
    7668        <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo>
     
    7971
    8072    </target>
     73
     74    <!-- sourcecode core system -->
     75    <target name="Installing Source Code Core">
     76
     77        <echo>Installing Source Code Core</echo>
     78        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode-core.lzma"/></patternset></unzip>
     79        <sevenzip task="decode" input="${basedir}/sourcecode-core.lzma" output="${basedir}/sourcecode-core.comp"/>
     80        <delete file="sourcecode-core.lzma"/>
     81        <unzip src="${basedir}/sourcecode-core.comp" dest="${installDir}"/>
     82        <delete file="sourcecode-core.comp"/>
     83
     84        <echo>Setting up global properties</echo>
     85        <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>
     86        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />
     87        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" />
     88        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" />
     89
     90        <echo>Setting up log4j properties</echo>
     91        <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>
     92        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />
     93
     94        <echo>Creating installation properties file</echo>
     95        <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo>
     96
     97    </target>
     98
    8199
    82100    <!-- Source -->
Note: See TracChangeset for help on using the changeset viewer.