VirtualBox

source: kBuild/vendor/sed/current/doc/local.mk@ 3611

Last change on this file since 3611 was 3611, checked in by bird, 7 months ago

vendor/sed/current: GNU sed 4.9 (sed-4.9.tar.xz sha256:6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181)

File size: 1.6 KB
Line 
1# Copyright (C) 2016-2022 Free Software Foundation, Inc.
2
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 3 of the License, or
6# (at your option) any later version.
7
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16info_TEXINFOS = doc/sed.texi
17doc_sed_TEXINFOS = doc/config.texi doc/version.texi doc/fdl.texi
18dist_man_MANS = doc/sed.1
19dist_noinst_DATA = doc/sed.x doc/sed-dummy.1
20HELP2MAN = $(top_srcdir)/build-aux/help2man
21SEDBIN = sed/sed
22EXTRA_DIST += doc/dummy-man
23
24AM_MAKEINFOHTMLFLAGS = --no-split
25
26## Use the distributed man pages if cross compiling or lack perl
27if CROSS_COMPILING
28run_help2man = $(SHELL) $(srcdir)/doc/dummy-man
29else
30## Graceful degradation for systems lacking perl.
31if HAVE_PERL
32if BOLD_MAN_REFS
33help2man_OPTS=--bold-refs
34endif
35run_help2man = $(PERL) -- $(HELP2MAN) $(help2man_OPTS)
36else
37run_help2man = $(SHELL) $(srcdir)/doc/dummy-man
38endif
39endif
40
41doc/sed.1: sed/sed$(EXEEXT) .version $(srcdir)/doc/sed.x
42 $(AM_V_GEN)$(MKDIR_P) doc
43 $(AM_V_at)rm -rf $@ $@-t
44 $(AM_V_at)$(run_help2man) \
45 --info-page=sed \
46 --include $(srcdir)/doc/sed.x \
47 --output=$@-t \
48 $(SEDBIN) \
49 && chmod a-w $@-t \
50 && mv $@-t $@
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette