* arduino and antiword is kept at -Np0
```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
```
13 lines
418 B
Diff
13 lines
418 B
Diff
|
|
--- a/numlib/numsup.h 2015-10-26 05:17:33.000000000 +0100
|
|
+++ b/numlib/numsup.h 2016-10-04 10:10:28.732000000 +0200
|
|
@@ -324,7 +324,7 @@
|
|
#define error_program g_log->tag
|
|
extern void set_exe_path(char *arg0);
|
|
|
|
-extern void ATTRIBUTE_NORETURN error(char *fmt, ...);
|
|
+extern void error(char *fmt, ...) __attribute__((noreturn));
|
|
extern void warning(char *fmt, ...);
|
|
extern void verbose(int level, char *fmt, ...);
|
|
|