void-packages/srcpkgs/autoconf213/patches/patch-ab.diff
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0

```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

21 lines
560 B
Diff

$NetBSD: patch-ab,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
--- a/autoconf.texi Tue Jan 5 14:28:37 1999
+++ b/autoconf.texi
@@ -4,6 +4,7 @@
@settitle Autoconf
@c For double-sided printing, uncomment:
@c @setchapternewpage odd
+@dircategory Programming & development tools
@c %**end of header
@set EDITION 2.13
@@ -17,7 +18,7 @@
@ifinfo
@format
START-INFO-DIR-ENTRY
-* Autoconf: (autoconf). Create source code configuration scripts.
+* Autoconf-2.13: (autoconf213). Create source code configuration scripts.
END-INFO-DIR-ENTRY
@end format