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 ```
20 lines
629 B
Diff
20 lines
629 B
Diff
--- a/src/3rdparty/btparse/lex_auxiliary.c 2018-12-19 01:27:45.874263697 +0000
|
|
+++ b/src/3rdparty/btparse/lex_auxiliary.c 2018-12-19 01:27:45.874263697 +0000
|
|
@@ -32,6 +32,7 @@
|
|
#include "bt_debug.h"
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
+#include <strings.h>
|
|
#include <ctype.h>
|
|
#include <stdarg.h>
|
|
#include <assert.h>
|
|
--- a/src/3rdparty/btparse/sym.c 2018-12-19 02:27:45.878263787 +0100
|
|
+++ b/src/3rdparty/btparse/sym.c 2018-12-19 02:27:45.878263787 +0100
|
|
@@ -110,6 +110,7 @@
|
|
/*#include "bt_config.h"*/
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
+#include <strings.h>
|
|
#include <stdlib.h>
|
|
#ifdef MEMCHK
|
|
#include "trax.h"
|