Changeset 18976

Show
Ignore:
Timestamp:
15.04.2009 15:32:31 (10 years ago)
Author:
oranfry
Message:

correct the perl shebang as part of the remote greenstone setup

Location:
release-kits
Files:
2 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 
  • release-kits/wirk2/installer/build.xml

    r18870 r18976  
    8686            comment="Dummy 'demo' user with password 'demo' for authen-e collection"/> 
    8787 
     88        <echo>Correcting perl shebangs in perl scripts</echo> 
     89        <property name="perl.executable" value="${installDir.local}\bin\windows\perl\perl.exe"/> 
     90        <rsr file="${installDir}/cgi-bin/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     91         
    8892        <echo message="Creating installation properties file"/> 
    8993        <echo file="${installDir}\etc\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo>