```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 ```
26 lines
702 B
Diff
26 lines
702 B
Diff
--- a/src/gui/app.cpp 2017-09-09 05:03:59.000000000 +0200
|
|
+++ b/src/gui/app.cpp 2017-11-13 07:17:16.769223845 +0100
|
|
@@ -153,6 +153,10 @@
|
|
|
|
#endif
|
|
|
|
+#ifndef ACCESSPERMS
|
|
+# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
|
|
+#endif
|
|
+
|
|
/* === U S I N G =========================================================== */
|
|
|
|
using namespace std;
|
|
--- a/src/gui/autorecover.cpp 2017-09-08 11:51:26.000000000 +0200
|
|
+++ b/src/gui/autorecover.cpp 2017-11-13 07:21:41.550697678 +0100
|
|
@@ -75,6 +75,10 @@
|
|
|
|
#endif
|
|
|
|
+#ifndef ACCESSPERMS
|
|
+# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */
|
|
+#endif
|
|
+
|
|
/* === U S I N G =========================================================== */
|
|
|
|
using namespace std;
|