Ignore:
Timestamp:
2002-02-28T14:07:23+13:00 (22 years ago)
Author:
jrm21
Message:

New scripts won't append $GSDLHOME to the exec name as badness happens
on windows if there are spaces in it. This will happen on unix too, but
unix people don't normally put spaces in directory names...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/xlstohtml.pl

    r2993 r3022  
    1818# try to find xlhtml binary in GSDLHOME
    1919my $xlhtml_binary="xlhtml";
    20 my $os_exeext="";
    2120my $GSDLOS=$ENV{'GSDLOS'};
    2221my $GSDLHOME=$ENV{'GSDLHOME'};
    23 if ($GSDLOS =~ /^windows$/i) {
    24     $os_exeext=".exe";
     22if ($GSDLOS =~ /^windows/i) {
     23    $xlhtml_binary.=".exe";
    2524}
    2625
    27 if (-x "$GSDLHOME/bin/$GSDLOS/xlhtml$os_exeext") {
    28     $xlhtml_binary="$GSDLHOME/bin/$GSDLOS/xlhtml$os_exeext";
     26# Trouble happens if there are spaces in GSDLHOME. Assume that on windows
     27# the program is found in the path.
     28if ($GSDLOS !~ /windows/i && -x "$GSDLHOME/bin/$GSDLOS/$xlhtml_binary") {
     29    $xlhtml_binary="$GSDLHOME/bin/$GSDLOS/$xlhtml_binary";
    2930}
    3031
Note: See TracChangeset for help on using the changeset viewer.