void-packages/srcpkgs/newlisp/patches/newlisp-makefile-install-10.7.0.patch
Đoàn Trần Công Danh 65749575ab srcpkgs/n*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

14 lines
615 B
Diff

diff -Nuar a/makefile_original_install b/makefile_original_install
--- a/makefile_original_install 2015-01-19 18:10:12.000000000 +0100
+++ b/makefile_original_install 2015-06-22 12:59:33.639980437 +0200
@@ -31,7 +31,9 @@
-install -d $(datadir)/newlisp/modules
-install -d $(datadir)/newlisp/util
-install -d $(datadir)/doc/newlisp
- -rm $(bindir)/newlisp
+ -install -d $(datadir)/man
+ -install -d $(datadir)/man/man1
+ -install -d $(bindir)
-install -m 755 newlisp $(bindir)/newlisp-$(VERSION)
-ln -s $(bindir)/newlisp-$(VERSION) $(bindir)/newlisp
-install -m 755 util/newlispdoc $(bindir)/newlispdoc