* 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
```
16 lines
452 B
Diff
16 lines
452 B
Diff
--- a/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp 2018-07-17 20:29:12.000000000 +0200
|
|
+++ b/actions/actionpacksystem/systeminfo/linux/qnetworkinfo_linux.cpp 2018-07-27 20:12:49.889568736 +0200
|
|
@@ -62,11 +62,11 @@
|
|
#endif // QT_NO_UDEV
|
|
|
|
#include <cmath>
|
|
-#include <linux/wireless.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
+#include <linux/wireless.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|