765e304c4b
```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 ```
32 lines
628 B
Diff
32 lines
628 B
Diff
commit 54339f12f306f19f7f7cf8a3a774734664c0364d
|
|
Author: q66 <daniel@octaforge.org>
|
|
Date: Wed Jan 1 22:42:38 2020 +0100
|
|
|
|
fix build
|
|
|
|
diff --git src/main.c src/main.c
|
|
index 6dc3230..1dfb3ef 100644
|
|
--- a/src/main.c
|
|
+++ b/src/main.c
|
|
@@ -34,7 +34,7 @@
|
|
#include <utime.h>
|
|
|
|
#ifndef WITHOUT_XATTR
|
|
-#include <attr/xattr.h>
|
|
+#include <sys/xattr.h>
|
|
#endif
|
|
|
|
#include "parse_options.h"
|
|
diff --git src/tools.c src/tools.c
|
|
index c427b82..69747a8 100644
|
|
--- a/src/tools.c
|
|
+++ b/src/tools.c
|
|
@@ -32,7 +32,7 @@
|
|
#include <dirent.h>
|
|
|
|
#ifndef WITHOUT_XATTR
|
|
-#include <attr/xattr.h>
|
|
+#include <sys/xattr.h>
|
|
#endif
|
|
|
|
#include "tools.h"
|