X-Git-Url: http://git.jankratochvil.net/?p=macros.git;a=blobdiff_plain;f=AutoGen.pm;h=796733ed6c5593f7b263c489f1f2318c20bf2b49;hp=aa28398a2f200b321253a88f3e552c152a2221a7;hb=be11781b7d5174124c299671ed0413bd9b0e06cf;hpb=f6f4d5b5dfa615753c7bdd3ac3b7e15cfd2c506f diff --git a/AutoGen.pm b/AutoGen.pm index aa28398..796733e 100644 --- a/AutoGen.pm +++ b/AutoGen.pm @@ -120,6 +120,8 @@ my(@files)=@_; my $nocheck=shift @files if $files[0] eq "nocheck"; my $dest=pop @files; + # expand pattern to properly match © resulting filenames count + @files=map({ glob $_; } @files); @files==copy @files,$dest or $nocheck or confess "$!"; } @@ -130,6 +132,8 @@ my(@files)=@_; my $nocheck=shift @files if $files[0] eq "nocheck"; my $flag=shift @files if ref $files[0]; + # expand pattern to properly match &remove resulting filenames count + @files=map({ glob $_; } @files); @files==remove((!$flag ? () : $flag),@files) or $nocheck or confess "$!"; }