4f75cf25fd
```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 ```
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
--- a/Makefile.in 2020-05-04 11:25:41.650521047 -0400
|
|
+++ b/Makefile.in 2020-05-04 11:29:37.834294399 -0400
|
|
@@ -91,19 +91,19 @@
|
|
#
|
|
|
|
install: tworld
|
|
- mkdir -p $(bindir)
|
|
- mkdir -p $(sharedir)/sets
|
|
- mkdir -p $(sharedir)/data
|
|
- mkdir -p $(sharedir)/res
|
|
- mkdir -p $(mandir)/man6
|
|
- cp -i ./tworld $(bindir)/.
|
|
- cp -i sets/*.dac $(sharedir)/sets/.
|
|
- cp -i data/*.dat $(sharedir)/data/.
|
|
- cp -i res/rc $(sharedir)/res/.
|
|
- cp -i res/*.bmp $(sharedir)/res/.
|
|
- cp -i res/*.txt $(sharedir)/res/.
|
|
- cp -i res/*.wav $(sharedir)/res/.
|
|
- cp -i docs/tworld.6 $(mandir)/man6/.
|
|
+ mkdir -p $(DESTDIR)/$(bindir)
|
|
+ mkdir -p $(DESTDIR)/$(sharedir)/sets
|
|
+ mkdir -p $(DESTDIR)/$(sharedir)/data
|
|
+ mkdir -p $(DESTDIR)/$(sharedir)/res
|
|
+ mkdir -p $(DESTDIR)/$(mandir)/man6
|
|
+ cp -i ./tworld $(DESTDIR)/$(bindir)/.
|
|
+ cp -i sets/*.dac $(DESTDIR)/$(sharedir)/sets/.
|
|
+ cp -i data/*.dat $(DESTDIR)/$(sharedir)/data/.
|
|
+ cp -i res/rc $(DESTDIR)/$(sharedir)/res/.
|
|
+ cp -i res/*.bmp $(DESTDIR)/$(sharedir)/res/.
|
|
+ cp -i res/*.txt $(DESTDIR)/$(sharedir)/res/.
|
|
+ cp -i res/*.wav $(DESTDIR)/$(sharedir)/res/.
|
|
+ cp -i docs/tworld.6 $(DESTDIR)/$(mandir)/man6/.
|
|
|
|
all: tworld
|
|
|