04b9978a29
* wine is kept at -Np0 ```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 ```
13 lines
645 B
Diff
13 lines
645 B
Diff
diff --git src/wildmidi.c src/wildmidi.c
|
|
index a9ae0f1..fd9c5e7 100644
|
|
--- a/src/wildmidi.c
|
|
+++ b/src/wildmidi.c
|
|
@@ -1997,7 +1997,7 @@ int main(int argc, char **argv) {
|
|
WildMidi_ClearError();
|
|
} else {
|
|
char *real_file = FIND_LAST_DIRSEP(argv[optind-1]);
|
|
- if (!real_file) real_file = argv[optind];
|
|
+ if (!real_file) real_file = argv[optind-1];
|
|
else real_file++;
|
|
mk_midifile_name(real_file);
|
|
printf("\rWriting %s: %u bytes.\r\n", midi_file, getmidisize);
|