void-packages/srcpkgs/libu2f-server/patches/src-no-help.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

27 lines
887 B
Diff

--- a/src/Makefile.am 2018-01-31 21:34:44.725821832 -0800
+++ b/src/Makefile.am 2018-01-31 21:35:32.885840481 -0800
@@ -40,24 +40,6 @@
BUILT_SOURCES = cmdline.c cmdline.h
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
-dist_man_MANS = $(top_srcdir)/man/u2f-server.1
-DISTCLEANFILES = $(dist_man_MANS)
-
-$(top_srcdir)/man/u2f-server.1: $(srcdir)/u2f-server.c $(srcdir)/cmdline.ggo $(top_srcdir)/configure.ac | $(builddir)/u2f-server$(EXEEXT)
- $(HELP2MAN) \
- --output=$(top_builddir)/man/$@ $(builddir)/u2f-server$(EXEEXT) \
- --name="Yubico Universal 2nd Factor (U2F) Server Tool" \
- --no-info
-if ENABLE_H2A
- $(HELP2ADOC) \
- -e $(builddir)/u2f-server$(EXEEXT) \
- --name="Yubico Universal 2nd Factor (U2F) Server Tool" \
- > $(top_builddir)/man/$@.txt
-endif
-
-clean-local:
- rm -f $(top_builddir)/man/*.[1-9]
-
if ENABLE_COV
AM_CFLAGS += --coverage
AM_LDFLAGS = --coverage