void-packages/srcpkgs/libu2f-server/patches/no-help2man.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

18 lines
493 B
Diff

--- a/configure.ac 2018-01-31 21:22:40.957541567 -0800
+++ b/configure.ac 2018-01-31 21:23:27.838559722 -0800
@@ -49,15 +49,6 @@
LT_INIT([win32-dll])
-AM_MISSING_PROG(HELP2ADOC, help2adoc, $missing_dir)
-AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
-if ! which help2man >/dev/null ; then
- AC_MSG_ERROR([help2man missing])
-fi
-if ! which gengetopt >/dev/null ; then
- AC_MSG_ERROR([gengetopt missing])
-fi
-
gl_LD_VERSION_SCRIPT
PKG_CHECK_MODULES([LIBJSON], [json-c], [], [