busybox: Set __progname in getopt for -n to work
[termux-packages] / packages / coreutils / Makefile.in.patch
1 Use man pages generated by help2man in the host build.
2
3 diff -u -r ../coreutils-8.25/Makefile.in ./Makefile.in
4 --- ../coreutils-8.25/Makefile.in 2016-01-20 05:55:18.000000000 -0500
5 +++ ./Makefile.in 2016-01-20 17:47:11.033497974 -0500
6 @@ -14385,32 +14385,7 @@
7 @SINGLE_BINARY_FALSE@man/yes.1: src/yes$(EXEEXT)
8
9 .x.1:
10 - $(AM_V_GEN)name=`echo $@ | sed 's|.*/||; s|\.1$$||'` || exit 1; \
11 - case $$name in \
12 - install) prog='ginstall'; argv=$$name;; \
13 - test) prog='['; argv='[';; \
14 - *) prog=$$name; argv=$$prog;; \
15 - esac; \
16 - rm -f $@ $@-t \
17 - && t=$*.td \
18 - && rm -rf $$t \
19 - && $(MKDIR_P) $$t \
20 - && (cd $$t && $(LN_S) '$(abs_top_builddir)/src/'$$prog$(EXEEXT) \
21 - $$argv$(EXEEXT)) \
22 - && : $${SOURCE_DATE_EPOCH=`cat $(srcdir)/.timestamp 2>/dev/null || :`} \
23 - && export SOURCE_DATE_EPOCH && $(run_help2man) \
24 - --source='$(PACKAGE_STRING)' \
25 - --include=$(srcdir)/man/$$name.x \
26 - --output=$$t/$$name.1 \
27 - --info-page='\(aq(coreutils) '$$name' invocation\(aq' \
28 - $$t/$$argv$(EXEEXT) \
29 - && sed \
30 - -e 's|$*\.td/||g' \
31 - -e '/For complete documentation/d' \
32 - $$t/$$name.1 > $@-t \
33 - && rm -rf $$t \
34 - && chmod a-w $@-t \
35 - && mv $@-t $@
36 + cp $(top_srcdir)/../host-build/$@ $@
37 .PHONY: check-root
38 check-root:
39 $(MAKE) check TESTS='$(root_tests)' SUBDIRS=.