void-packages/srcpkgs/autoconf213/patches/patch-ac.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

22 lines
780 B
Diff

$NetBSD: patch-ac,v 1.1.1.1 2002/10/03 19:25:04 wiz Exp $
--- a/autoreconf.sh Tue Jan 5 14:28:40 1999
+++ b/autoreconf.sh
@@ -143,7 +143,7 @@ while read dir; do
:
else
test $verbose = yes && echo running aclocal in $dir, creating $aclocal
- aclocal --output=$aclocal -I `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`
+ aclocal-1.4 --output=$aclocal -I `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`
fi
fi
@@ -154,7 +154,7 @@ while read dir; do
amforce=
test $force = no && amforce=--no-force
test $verbose = yes && echo running automake`test x"$amforce" = x || echo " ($amforce)"` in $dir
- automake $amforce $automake_mode $automake_deps
+ automake-1.4 $amforce $automake_mode $automake_deps
fi
test ! -f $aclocal && aclocal=