]> granicus.if.org Git - docbook-dsssl/commitdiff
Properly initialize $redirect variable in "xsltproc" script so
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 23 Jun 2007 02:26:12 +0000 (02:26 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 23 Jun 2007 02:26:12 +0000 (02:26 +0000)
that we don't get warnings from perl.

buildtools/xsltproc

index 9d415b2718851411d6189acd2cce18a60af5ed4c..311e0ca8cb9faac1b88a9918309ddb3f51e87985 100755 (executable)
@@ -31,6 +31,7 @@ my $debug = 0;
 my $config = "~/.xmlc";
 my @opts = ();
 my $c14n = 0;
+my $redirect = "";
 
 while (@ARGV) {
     if ($ARGV[0] =~ /^-\d/) {
@@ -125,7 +126,7 @@ foreach my $param (@params) {
 # stylesheet that has exsl:document or saxon:output, xsltproc
 # tries to write the output in the /dev directory; so we need to
 # redirect the output instead of using xsltproc's -o option
-my $redirect = " > $output" if defined($output) && $output ne '-';
+$redirect = " > $output" if defined($output) && $output ne '-';
 
 if ($c14n) {
   my $xmllintpipe =  " | " . applyOpts($xp, 'xmllint') . " " . $xlintopts;