Changeset 14984

Show
Ignore:
Timestamp:
13.02.2008 16:03:55 (11 years ago)
Author:
oranfry
Message:

use the (hopefully) safer method of ls -l instead of du -b to get the size of the installer jar

Files:
1 modified

Legend:

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

    r14982 r14984  
    4141 
    4242            <!-- greenstone.jar --> 
    43             <exec executable="du" dir="${basedir}/wrapped-installer/build" outputproperty="greenstone3.jar.du"> 
    44                 <arg line="-b greenstone3.jar"/> 
     43            <exec executable="ls" dir="${basedir}/wrapped-installer/build" outputproperty="greenstone3.jar.ls"> 
     44                <arg line="-l greenstone3.jar"/> 
    4545            </exec> 
    46             <exec executable="sed" inputstring="${greenstone3.jar.du}" outputproperty="greenstone3.jar.size"> 
    47                 <arg line="s/[^0-9].*//g"/> 
     46            <!--<echo level="info">ls: ${greenstone3.jar.ls}</echo>--> 
     47            <exec executable="sed" inputstring="${greenstone3.jar.ls}" outputproperty="greenstone3.jar.size"> 
     48                <arg line="-e 's/^[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *[^\ ]*\ *\([0-9]*\).*$/\1/g'"/> 
    4849            </exec> 
     50            <!--<echo level="info">size: ${greenstone3.jar.size}</echo>--> 
    4951            <exec executable="echo" output="${basedir}/wrapped-installer/build/mywrapper.h"> 
    5052                <arg line="extern const char greenstone3jar[${greenstone3.jar.size}];"/> 
    5153            </exec> 
    52  
    5354 
    5455            <echo level="info">compile the wrapper program</echo>