Changeset 3022
- Timestamp:
- 2002-02-28T14:07:23+13:00 (22 years ago)
- Location:
- trunk/gsdl/bin/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/ppttohtml.pl
r2978 r3022 18 18 # try to find ppthtml binary in GSDLHOME 19 19 my $ppthtml_binary="ppthtml"; 20 my $os_exeext="";21 20 my $GSDLOS=$ENV{'GSDLOS'}; 22 21 my $GSDLHOME=$ENV{'GSDLHOME'}; 23 22 if ($GSDLOS =~ /^windows$/i) { 24 $ os_exeext=".exe";23 $ppthtml_binary.=".exe"; 25 24 } 26 25 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 28 if ($GSDLOS !~ /windows/i && -x "$GSDLHOME/bin/$GSDLOS/$ppthtml_binary") { 29 $ppthtml_binary="$GSDLHOME/bin/$GSDLOS/$ppthtml_binary"; 29 30 } 30 31 -
trunk/gsdl/bin/script/xlstohtml.pl
r2993 r3022 18 18 # try to find xlhtml binary in GSDLHOME 19 19 my $xlhtml_binary="xlhtml"; 20 my $os_exeext="";21 20 my $GSDLOS=$ENV{'GSDLOS'}; 22 21 my $GSDLHOME=$ENV{'GSDLHOME'}; 23 if ($GSDLOS =~ /^windows $/i) {24 $ os_exeext=".exe";22 if ($GSDLOS =~ /^windows/i) { 23 $xlhtml_binary.=".exe"; 25 24 } 26 25 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. 28 if ($GSDLOS !~ /windows/i && -x "$GSDLHOME/bin/$GSDLOS/$xlhtml_binary") { 29 $xlhtml_binary="$GSDLHOME/bin/$GSDLOS/$xlhtml_binary"; 29 30 } 30 31
Note:
See TracChangeset
for help on using the changeset viewer.