Changeset 3022


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...

Location:
trunk/gsdl/bin/script
Files:
2 edited

Legend:

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

    r2978 r3022  
    1818# try to find ppthtml binary in GSDLHOME
    1919my $ppthtml_binary="ppthtml";
    20 my $os_exeext="";
    2120my $GSDLOS=$ENV{'GSDLOS'};
    2221my $GSDLHOME=$ENV{'GSDLHOME'};
    2322if ($GSDLOS =~ /^windows$/i) {
    24     $os_exeext=".exe";
     23    $ppthtml_binary.=".exe";
    2524}
    2625
    27 if (-x "$GSDLHOME/bin/$GSDLOS/ppthtml$os_exeext") {
    28     $ppthtml_binary="$GSDLHOME/bin/$GSDLOS/ppthtml$os_exeext";
     26# assume it is on the path if running under windows, in case GSDLHOME
     27# has a space
     28if ($GSDLOS !~ /windows/i && -x "$GSDLHOME/bin/$GSDLOS/$ppthtml_binary") {
     29    $ppthtml_binary="$GSDLHOME/bin/$GSDLOS/$ppthtml_binary";
    2930}
    3031
  • 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.