4f75cf25fd
```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 ```
14 lines
522 B
Diff
14 lines
522 B
Diff
The default progname really should be kpsewhich, and makes a test
|
|
pass which otherwise fails.
|
|
|
|
--- a/texk/kpathsea/kpsewhich.c 2020-07-01 19:07:23.592000000 +1000
|
|
+++ b/texk/kpathsea/kpsewhich.c 2020-07-01 19:07:33.999000000 +1000
|
|
@@ -60,7 +60,7 @@
|
|
boolean must_exist = false;
|
|
|
|
/* The program name, for `.PROG' construct in texmf.cnf. (-program) */
|
|
-string progname = NULL;
|
|
+string progname = "kpsewhich";
|
|
|
|
/* Safe input and output names to check. (-safe-in-name and -safe-out-name) */
|
|
string safe_in_name = NULL;
|