Changeset 18977

Show
Ignore:
Timestamp:
15.04.2009 15:34:11 (10 years ago)
Author:
oranfry
Message:

correct the perl shebang as part of the remote greenstone setup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • release-kits/mark2/installer/build.xml

    r18870 r18977  
    4949        <copy file="${installDir}/cgi-bin/gsdlsite.cfg.in" tofile="${installDir}/cgi-bin/gsdlsite.cfg"/> 
    5050        <rsr file="${installDir}/cgi-bin/gsdlsite.cfg" pattern="\*\*GSDLHOME\*\*" replacement="${installDir}"/> 
     51        <echo/> 
     52 
     53        <echo>Correcting perl shebangs in perl scripts</echo> 
     54        <exec executable="which" outputproperty="perl.executable"><arg value="perl"/></exec> 
     55        <if><bool><not><isempty value="${perl.executable}"/></not></bool> 
     56            <rsr file="${installDir}/cgi-bin/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     57        </if> 
    5158        <echo/> 
    5259