65749575ab
```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 ```
20 lines
472 B
Diff
20 lines
472 B
Diff
--- a/Makefile 2018-08-21 18:07:51.000000000 +0200
|
|
+++ b/Makefile.new 2018-10-02 11:16:49.335221638 +0200
|
|
@@ -61,16 +61,7 @@
|
|
|
|
$(CONFIGURE): aclocal.m4
|
|
autoconf
|
|
- ./configure \
|
|
- --prefix=/ \
|
|
- --exec-prefix=/ \
|
|
- --sbindir=/bin \
|
|
- --bindir=/usr/bin \
|
|
- --libdir=/lib \
|
|
- --libexecdir=/usr/lib \
|
|
- --includedir=/usr/include \
|
|
- --mandir=/usr/share/man \
|
|
- --datadir=/usr/share \
|
|
+ ./configure @configure_args@ \
|
|
$$LOCAL_CONFIGURE_OPTIONS
|
|
touch .census
|
|
|