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 ```
20 lines
429 B
Diff
20 lines
429 B
Diff
--- a/Makefile~ 2009-01-11 21:52:10.000000000 +0100
|
|
+++ b/Makefile 2017-11-18 19:31:11.107853009 +0100
|
|
@@ -40,7 +40,6 @@
|
|
#
|
|
# Programs
|
|
#
|
|
-CC = gcc
|
|
INSTALL = install
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
|
--- a/src/Makefile~ 2009-01-11 21:52:10.000000000 +0100
|
|
+++ b/src/Makefile 2017-11-18 19:37:49.493851304 +0100
|
|
@@ -16,7 +16,6 @@
|
|
|
|
objects = $(sources:.c=.o)
|
|
|
|
-CC = gcc
|
|
|
|
#
|
|
# Compile flags
|