[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: wmk and shebang line



On Tue, 30 Mar 1999, Jan Ulrich Hasecke wrote:

> When I use no shebang line wmk only compiles edited files. 
> 
> With this shebang-line
> 
> #!wml -o (ALL-LANG_*)uLANG_EN:kap2-en.html \
>       -o (ALL-LANG_*)uLANG_DE:kap2-de.html
> 
> the file is always compiled. In wmd I found no hint, to stop this.

Thanks Jan Ulrich, it's a bug. Below is a patch
Line numbers may be wrong, wmk has been modified since wml-1.6.8

   Denis

--- wmk.src.old Tue Mar 30 13:43:41 1999
+++ wmk.src     Tue Mar 30 13:43:15 1999
@@ -483,7 +483,7 @@
     if (not $opt_f) {
         my @outfiles = ();
         my $s = $opts;
-        $s =~ s|-o\s*["']?(?:[^:]+:(?!:))?([^\s@]+)|push(@outfiles, $1), ''|sge;
+        $s =~ s|-o\s*["']?(?:[^:]+:(?!:))?([^\s@'"]+)|push(@outfiles, $1), ''|sge;
         $skipable = &skipable($file, @outfiles);
     }
     else {

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com