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 ```
15 lines
699 B
Diff
15 lines
699 B
Diff
--- a/Makefile 2017-06-02 21:17:59.554162598 -0500
|
|
+++ b/Makefile 2017-06-02 21:18:27.781905157 -0500
|
|
@@ -71,10 +71,8 @@
|
|
all:
|
|
@echo "ROOTDIR=$(ROOTDIR)" > Makefile.global
|
|
@echo "XOBJ=$(XOBJ)" >> Makefile.global
|
|
- @echo "CFLAGS=-g -ansi -pedantic -Wall -W -O2 -I $(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global
|
|
- @echo "LDFLAGS=-lz $(shell sdl-config --libs)" >> Makefile.global
|
|
- @echo "CC=gcc" >> Makefile.global
|
|
- @echo "CPP=gcc -E" >> Makefile.global
|
|
+ @echo "CFLAGS+=-g -ansi -pedantic -Wall -W -O2 -I $(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global
|
|
+ @echo "LDFLAGS+=-lz $(shell sdl-config --libs)" >> Makefile.global
|
|
$(MAKE) -C src all
|
|
|
|
clean:
|