3353bf4722
```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
381 B
Diff
14 lines
381 B
Diff
--- a/linux/serialmeter.cc 2016-01-02 10:39:10.279496776 +0100
|
|
+++ b/linux/serialmeter.cc 2016-01-02 10:37:54.667491325 +0100
|
|
@@ -39,9 +39,11 @@
|
|
#endif
|
|
#else
|
|
#if !defined(__alpha__) && !defined(__sparc__) && !defined(__powerpc__) && !defined(__ia64__) && !defined(__m68k__)
|
|
+#if defined(HAVE_ASM_IO_H)
|
|
#include <asm/io.h>
|
|
#endif
|
|
#endif
|
|
+#endif
|
|
#include <linux/serial.h>
|
|
|
|
|