Show
Ignore:
Timestamp:
14.05.2013 18:33:55 (7 years ago)
Author:
kjdon
Message:

Attempting to get perl shebangs right for cgi scripts in GS3 (in web/WEB-INF/cgi) during GS3 installation. Need to still test the GS3 binary that gets generated thus, especially windows, where the shebangs are currently wrong.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/kits/rk3/installer/build.xml

    r26077 r27335  
    117117        <chmod file="${installDir}/src/packages/javagdbm/configure" perm="775"/> 
    118118        --> 
     119         
     120 
     121        <echo>Correcting perl shebangs in perl scripts</echo> 
     122        <!-- if linux|mac --> 
     123        <exec executable="which" outputproperty="perl.executable"><arg value="perl"/></exec> 
     124        <rsr file="${installDir}/web/WEB-INF/cgi/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     125        <rsr file="${installDir}/web/WEB-INF/cgi/metadata-server.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     126        <rsr file="${installDir}/web/WEB-INF/cgi/checksum.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     127        <!-- /if --> 
     128        <!-- if windows --> 
     129        <property name="perl.executable" value="${installDir.local}\gs2build\bin\windows\perl\bin\perl.exe"/> 
     130        <rsr file="${installDir}/web/WEB-INF/cgi/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     131        <rsr file="${installDir}/web/WEB-INF/cgi/metadata-server.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     132        <rsr file="${installDir}/web/WEB-INF/cgi/checksum.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/> 
     133        <!-- /if --> 
     134         
    119135 
    120136        <echo>Setting tomcat ports</echo>