Changeset 23896


Ignore:
Timestamp:
2011-04-11T17:16:13+12:00 (13 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed the missing full.perl.path variable when on windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r23857 r23896  
    574574          <else>
    575575            <echo>
    576   Using PATH enviroment variable to locate Perl.
     576  Using PATH environment variable to locate Perl.
    577577            </echo>
    578578            <exec executable="which" os="${os.unix}" spawn="false" outputproperty="full.perl.path">
     
    580580            </exec>
    581581
     582        <exec executable="where" os="${os.windows}" spawn="false" outputproperty="full.perl.path">
     583              <arg value="perl" />
     584            </exec>
     585
     586            <if><bool><istrue value="${current.os.iswindows}"/></bool>
     587              <stringutil string="${full.perl.path}" property="full.perl.path">
     588                <replace regex="[\n].*$" replacement="" />
     589              </stringutil>
     590        </if>
     591
    582592            <stringutil string="${full.perl.path}" property="perl.path">
    583               <replace regex="\/[^\/]*$" replacement="" />
     593                <replace regex="\/[^\/]*$" replacement="" />
    584594            </stringutil>
    585595
    586             <if><bool><not><equals arg1="${full.perl.path}" arg2="/usr/bin/perl"/></not></bool>
    587               <echo>
     596            <if><bool><istrue value="${current.os.isunix}"/></bool>
     597
     598              <if><bool><not><equals arg1="${full.perl.path}" arg2="/usr/bin/perl"/></not></bool>
     599                <echo>
    588600    Non-standard location of Perl found: ${full.perl.path}
    589601    Set the environment variable PERLPATH or the perl.path property in
    590602      build.properties to explicitly control the version of Perl used.
    591               </echo>
     603                </echo>
     604              </if>
    592605            </if>
    593606          </else>
Note: See TracChangeset for help on using the changeset viewer.