Changeset 17652 for release-kits/wirk2


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

started source releases

Location:
release-kits/wirk2
Files:
4 edited

Legend:

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

    r17472 r17652  
    22<project name="wirk2-create-components" default="create-components">
    33
     4    <!-- create components from the distribution folder -->
    45
     6    <!-- 1st level -->
    57    <target name="create-components">
    68        <antcall target="prepare-components" />
     
    810    </target>
    911   
    10     <!-- create components from the distribution folder -->
     12    <!-- 2nd level -->
    1113    <target name="prepare-components">
    1214        <antcall target="prepare-core-component" />
     
    1416        <antcall target="prepare-ghostscript-component" />
    1517        <antcall target="prepare-sourcecode-component" />
     18        <antcall target="prepare-sourcecode-core-component" />
    1619    </target>
    1720   
     
    2124        <antcall target="compress-ghostscript-component" />
    2225        <antcall target="compress-sourcecode-component" />
     26        <antcall target="compress-sourcecode-core-component" />
    2327    </target>
    2428   
    25    
    26    
    27    
     29    <!-- 3rd level --> 
    2830    <target name="prepare-core-component">
    2931        <!-- delete old stuff to create new components -->
     
    121123        <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
    122124    </target>
     125
     126    <target name="prepare-sourcecode-core-component">
     127        <delete dir="components/tmp/sourcecode-core"/>
     128        <mkdir dir="components/tmp/sourcecode-core"/>
     129
     130        <copy todir="components/tmp/sourcecode-core" overwrite="true">
     131            <fileset dir="distributions/source">
     132                <include name="macros/**/*"/>
     133                <include name="images/**/*"/>
     134                <include name="etc/**/*"/>
     135                <include name="gli/**/*"/>
     136                <include name="collect/**/*"/>
     137                <include name="doc/**/*"/>
     138                <include name="setup.bash"/>
     139            </fileset>
     140        </copy>
     141        <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
     142    </target>
     143   
     144    <target name="compress-sourcecode-core-component">
     145        <!--<sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>-->
     146        <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode-core.lzma sourcecode-core.comp"/></exec>
     147    </target>
     148
    123149   
    124150   
  • release-kits/wirk2/ant-scripts/create-distribution.xml

    r17583 r17652  
    33
    44    <target name="create-distribution">
     5
    56        <antcall target="export-gsdl-gli" />
    67        <antcall target="dist-set-version" />
     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
    715        <antcall target="drop-in-binaries" />
    816        <antcall target="drop-in-demo-collection" />
    9         <antcall target="drop-in-docs" />
    1017        <antcall target="drop-in-misc" />
    1118        <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk2-targets -->     
    1219        <antcall target="compile-gli" />
    13         <antcall target="tweak-files" />
     20        <antcall target="remove-unneeded-files-2" />
     21
    1422    </target>
    1523
     
    96104        <rsr file="${basedir}/distributions/web/Support.htm" pattern="^(\s*&lt;input.* name=&quot;gsdl version&quot;.* value=&quot;).*(&quot;.*&gt;)" replacement="$1${version}$2"/>
    97105
     106    </target>
    98107
    99         <echo level="info">Removing signed gatherer</echo>
    100         <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
    101 
    102         <echo level="info">Removing some unneeded stuff</echo>
     108    <target name="remove-unneeded-files-1">
    103109        <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
    104110        <delete dir="${basedir}/distributions/web/bin/linux" />
     
    107113    </target>
    108114
     115    <target name="remove-unneeded-files-2">
     116        <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" />
     117    </target>
     118
     119
    109120</project>
  • release-kits/wirk2/installer/antinstall-config.xml

    r17597 r17652  
    5353            hidden="true"/>
    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        <target
  • release-kits/wirk2/installer/build.xml

    r17638 r17652  
    3636    <target name="Installing Core System">
    3737
    38         <!-- figure out the start menu path (if not already set from previous installation) -->
     38        <!-- figure out the start menu path -->
    3939        <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/>       
    4040        <path id="startmenu.path.path" path="${startmenu.path}"/>
     
    107107    </target>
    108108
     109    <target name="Installing Source Code Core">
     110
     111        <!-- figure out the start menu path -->
     112        <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/>       
     113        <path id="startmenu.path.path" path="${startmenu.path}"/>
     114        <pathconvert targetos="unix" property="startmenu.path.unix" refid="startmenu.path.path"/>
     115
     116        <echo>basedir: ${basedir}</echo>
     117        <echo>installDir: ${installDir}</echo>
     118        <echo>antinstaller.jar: ${antinstaller.jar}</echo>
     119        <echo>startmenu.path: ${startmenu.path}</echo>
     120
     121        <!-- create the installation directory -->
     122        <echo message="Creating Installation directory"/>
     123        <mkdir dir="${installDir}"/>
     124       
     125        <!-- extract 7za tool -->
     126        <unzip src="${antinstaller.jar}" dest="${basedir}">
     127            <patternset><include name="7za.exe"/></patternset>
     128        </unzip>
     129
     130        <!-- install files -->
     131        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode-core.lzma"/></patternset></unzip>
     132        <exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x sourcecode-core.lzma"/></exec>
     133        <delete file="sourcecode-core.lzma"/>
     134        <unzip src="${basedir}/sourcecode-core.comp" dest="${installDir}"/>
     135        <delete file="sourcecode-core.comp"/>
     136       
     137        <echo message="Filling in concrete values in config files"/>
     138        <rsr file="${installDir}/setup.bat" pattern="\*\*GSDLHOME\*\*" replacement="${installDir}"/>
     139               
     140        <echo message="Creating installation properties file"/>
     141        <echo file="${installDir}\etc\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo>
     142       
     143        <echo message="Finished"/>
     144       
     145    </target>
     146
    109147    <!-- Source -->
    110148    <target name="Installing Source Code">
Note: See TracChangeset for help on using the changeset viewer.