200bed5c06
```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 ```
10 lines
250 B
Diff
10 lines
250 B
Diff
--- a/hxnum.c 2016-03-20 16:18:47.815855780 +0100
|
|
+++ b/hxnum.c 2016-03-20 16:19:40.197200923 +0100
|
|
@@ -29,6 +29,7 @@
|
|
#endif
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
+#include <getopt.h>
|
|
#include "export.h"
|
|
#include "types.e"
|
|
#include "class.e"
|