Show
Ignore:
Timestamp:
15.04.2009 15:32:31 (11 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/lirk2/installer/build.xml

    r18876 r18976  
    5656        <copy file="${installDir}/cgi-bin/gsdlsite.cfg.in" tofile="${installDir}/cgi-bin/gsdlsite.cfg"/> 
    5757        <rsr file="${installDir}/cgi-bin/gsdlsite.cfg" pattern="\*\*GSDLHOME\*\*" replacement="${installDir}"/> 
     58 
     59        <echo>Correcting perl shebangs in perl scripts</echo> 
     60        <exec executable="which" outputproperty="perl.executable"><arg value="perl"/></exec> 
     61        <if><bool><not><isempty value="${perl.executable}"/></not></bool> 
     62            <rsr file="${installDir}/cgi-bin/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     63        </if> 
    5864        <echo/> 
    5965