void-packages/srcpkgs/libu2f-host/patches/disable-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

15 lines
542 B
Diff

--- a/src/Makefile.am 2016-10-05 16:33:16.220820872 +0200
+++ b/src/Makefile.am 2016-10-05 16:33:49.713822600 +0200
@@ -31,12 +31,3 @@
BUILT_SOURCES = cmdline.c cmdline.h
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
-
-dist_man_MANS = u2f-host.1
-DISTCLEANFILES = $(dist_man_MANS)
-
-u2f-host.1: $(srcdir)/u2f-host.c $(srcdir)/cmdline.ggo $(top_srcdir)/configure.ac | $(builddir)/u2f-host$(EXEEXT)
- $(AM_V_GEN)$(HELP2MAN) \
- --output=$@ $(builddir)/u2f-host$(EXEEXT) \
- --name="Yubico Universal 2nd Factor (U2F) Host Tool" \
- --no-info