765e304c4b
```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 ```
12 lines
254 B
Diff
12 lines
254 B
Diff
--- a/sources/path.cpp 2008-09-13 21:31:49.000000000 +0200
|
|
+++ b/sources/path.cpp 2015-11-18 19:02:00.715596008 +0100
|
|
@@ -10,7 +10,9 @@
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
+#if !defined(NAME_MAX)
|
|
#define NAME_MAX 256
|
|
+#endif
|
|
|
|
/* Paths: */
|
|
|