```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
430 B
Diff
12 lines
430 B
Diff
--- a/configure.ac 2019-07-18 10:57:21.187376556 +0200
|
|
+++ b/configure.ac 2019-07-18 10:58:09.968379876 +0200
|
|
@@ -1611,6 +1611,9 @@
|
|
if test $cross_compiling = no; then
|
|
BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
|
|
BUILD_LDFLAGS="$LDFLAGS"
|
|
+else
|
|
+ BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
|
|
+ BUILD_LDFLAGS="$BUILD_LDFLAGS"
|
|
fi
|
|
AC_SUBST(BUILD_CFLAGS)
|
|
AC_SUBST(BUILD_LDFLAGS)
|