```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
16 lines
554 B
Diff
16 lines
554 B
Diff
diff --git lib/Lltag/FLAC.pm lib/Lltag/FLAC.pm
|
|
index 8c0186d..5c571a6 100644
|
|
--- a/lib/Lltag/FLAC.pm
|
|
+++ b/lib/Lltag/FLAC.pm
|
|
@@ -23,8 +23,9 @@ sub read_tags {
|
|
if $status ;
|
|
@output = map {
|
|
my $line = $_ ;
|
|
- $line =~ s/^\s*comment\[\d+\]\s*:\s*(.*)/$1/ ;
|
|
- $line =~ s/^TRACKNUMBER=/NUMBER=/ ;
|
|
+ $line =~ s/^\s*comment\[\d+\]\s*:\s*(.*)/$1/i ;
|
|
+ $line =~ s/^tracknumber=/NUMBER=/i ;
|
|
+ $line =~ s/^track number=/NUMBER=/i ;
|
|
$line
|
|
} ( grep { /comment\[\d+\]/ } @output ) ;
|
|
return Lltag::Tags::convert_tag_stream_to_values ($self, @output) ;
|