Ignore:
Timestamp:
2009-09-07T09:54:30+12:00 (15 years ago)
Author:
oranfry
Message:

moved targets for preparing and compressing components to the fully shared area from greenstone3 shared area, and create a target to create the minimal distribution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/greenstone3/ant-scripts/rk3-targets.xml

    r20337 r20532  
    200200    </target>
    201201
    202 
    203     <!-- prepare the component named in ${component} -->
    204     <target name="prepare-component">
    205         <mkdir dir="components"/>
    206         <zip destfile="components/${component}.comp" compress="false">
    207             <zipfileset dir="distributions/web">
    208                 <patternset refid="greenstone3.${component}.component"/>
    209             </zipfileset>
    210         </zip>
    211     </target>   
    212 
    213     <target name="compress-component">
    214         <!-- windows -->
    215         <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
    216             <exec executable="${rk.home}/windows/7za/7za.exe" dir="components"><arg line="a -t7z -mx=9 ${component}.lzma ${component}.comp"/></exec>
    217        
    218         <!-- linux, mac -->
    219         <else><if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
    220             <sevenzip task="encode" input="components/${component}.comp" output="components/${component}.lzma" dictionnary="26"/>
    221 
    222         <!-- else warn -->
    223         <else>
    224             <fail>this target does not support this os (was a new release-kit os added?)</fail>
    225 
    226         </else></if></else></if>
    227     </target>
    228 
    229202    <target name="insert-windows-icon">
    230203        <copy
Note: See TracChangeset for help on using the changeset viewer.