a03d116397
```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 ```
11 lines
414 B
Diff
11 lines
414 B
Diff
--- a/evtest.c 2019-08-02 20:14:30.000000000 +0200
|
|
+++ b/evtest.c 2020-12-11 15:33:15.895384954 +0100
|
|
@@ -1139,7 +1139,7 @@
|
|
type = ev[i].type;
|
|
code = ev[i].code;
|
|
|
|
- printf("Event: time %ld.%06ld, ", ev[i].time.tv_sec, ev[i].time.tv_usec);
|
|
+ printf("Event: time %lld.%06ld, ", (long long)ev[i].input_event_sec, (long)ev[i].input_event_usec);
|
|
|
|
if (type == EV_SYN) {
|
|
if (code == SYN_MT_REPORT)
|