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 ```
12 lines
287 B
Diff
12 lines
287 B
Diff
--- a/xlunch.c 2017-05-17 21:38:59.048445309 -0500
|
|
+++ b/xlunch.c 2017-05-17 21:39:41.334944291 -0500
|
|
@@ -27,6 +27,9 @@
|
|
#include <sys/file.h>
|
|
#include <errno.h>
|
|
|
|
+/* file I/O stuff */
|
|
+#include <fcntl.h>
|
|
+
|
|
/* some globals for our window & X display */
|
|
Display *disp;
|
|
Window win;
|