Changeset 17981

Show
Ignore:
Timestamp:
28.11.2008 15:12:02 (11 years ago)
Author:
oranfry
Message:

use system tar command over ant tar task

Location:
release-kits
Files:
3 modified

Legend:

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

    r17964 r17981  
    7272                 
    7373        <mkdir dir="products"/> 
    74         <tar destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz" basedir="components/tmp/sourcecode" compression="gzip" longfile="gnu"/> 
     74        <exec dir="components/tmp/sourcecode" executable="bash"> 
     75            <arg line="-c tar -czf ../../products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz *"/> 
     76        </exec> 
    7577 
    7678    </target> 
  • release-kits/mark2/ant-scripts/create-components.xml

    r17964 r17981  
    8585                 
    8686        <mkdir dir="products"/> 
    87         <tar destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz" basedir="components/tmp/sourcecode" compression="gzip" longfile="gnu"/> 
     87        <exec dir="components/tmp/sourcecode" executable="bash"> 
     88            <arg line="-c tar -czf ../../products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz *"/> 
     89        </exec> 
    8890    </target> 
    8991 
  • release-kits/shared/ant-scripts/init.xml

    r17977 r17981  
    374374    </target> 
    375375 
    376     <!-- creates the comp for the source release, works for all release kits --> 
    377     <target name="prepare-source-release"> 
    378         <delete dir="components/tmp/source-release"/> 
    379         <mkdir dir="components/tmp/source-release"/> 
    380  
    381         <copy todir="components/tmp/source-release" overwrite="true"> 
    382             <fileset dir="distributions/source"/> 
    383         </copy> 
    384         <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false"/> 
    385     </target> 
    386  
    387376    <!-- create the zipped up binary release from the web distribution --> 
    388377    <target name="compress-zipped-binary-release"> 
     
    392381            <zip destfile="products/Greenstone-${version}-${os.suffix}-binary.zip" basedir="distributions/web" compress="true"/> 
    393382            <else> 
    394             <tar destfile="products/Greenstone-${version}-${os.suffix}-binary.tar.gz" basedir="distributions/web" compression="gzip"/> 
     383                <exec dir="distributions" executable="tar"> 
     384                    <arg line="-czf ../products/Greenstone-${version}-${os.suffix}-binary.tar.gz web"/> 
     385                </exec> 
    395386            </else> 
    396387        </if>