From 9e1d5d6307a3b95c557007ede36913db7dba4b97 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Sat, 24 Jun 2017 13:55:02 +0200 Subject: remove man page code Build is broken on Android. Signed-off-by: Wolfgang Wiedmeyer --- Makefile.am | 5 - gettext-runtime/Makefile.am | 2 +- gettext-tools/Makefile.am | 2 +- gettext-tools/configure.ac | 4 - gettext-tools/man/.gitignore | 44 --- gettext-tools/man/ChangeLog.0 | 153 ----------- gettext-tools/man/ChangeLog.1 | 229 ---------------- gettext-tools/man/Makefile.am | 169 ------------ gettext-tools/man/autopoint.x | 4 - gettext-tools/man/gettextize.x | 4 - gettext-tools/man/help2man | 530 ------------------------------------ gettext-tools/man/msgattrib.x | 4 - gettext-tools/man/msgcat.x | 4 - gettext-tools/man/msgcmp.x | 4 - gettext-tools/man/msgcomm.x | 4 - gettext-tools/man/msgconv.x | 4 - gettext-tools/man/msgen.x | 4 - gettext-tools/man/msgexec.x | 4 - gettext-tools/man/msgfilter.x | 4 - gettext-tools/man/msgfmt.x | 4 - gettext-tools/man/msggrep.x | 4 - gettext-tools/man/msginit.x | 4 - gettext-tools/man/msgmerge.x | 4 - gettext-tools/man/msgunfmt.x | 4 - gettext-tools/man/msguniq.x | 4 - gettext-tools/man/recode-sr-latin.x | 4 - gettext-tools/man/x-to-1.in | 59 ---- gettext-tools/man/xgettext.x | 4 - 28 files changed, 2 insertions(+), 1267 deletions(-) delete mode 100644 gettext-tools/man/.gitignore delete mode 100644 gettext-tools/man/ChangeLog.0 delete mode 100644 gettext-tools/man/ChangeLog.1 delete mode 100644 gettext-tools/man/Makefile.am delete mode 100644 gettext-tools/man/autopoint.x delete mode 100644 gettext-tools/man/gettextize.x delete mode 100755 gettext-tools/man/help2man delete mode 100644 gettext-tools/man/msgattrib.x delete mode 100644 gettext-tools/man/msgcat.x delete mode 100644 gettext-tools/man/msgcmp.x delete mode 100644 gettext-tools/man/msgcomm.x delete mode 100644 gettext-tools/man/msgconv.x delete mode 100644 gettext-tools/man/msgen.x delete mode 100644 gettext-tools/man/msgexec.x delete mode 100644 gettext-tools/man/msgfilter.x delete mode 100644 gettext-tools/man/msgfmt.x delete mode 100644 gettext-tools/man/msggrep.x delete mode 100644 gettext-tools/man/msginit.x delete mode 100644 gettext-tools/man/msgmerge.x delete mode 100644 gettext-tools/man/msgunfmt.x delete mode 100644 gettext-tools/man/msguniq.x delete mode 100644 gettext-tools/man/recode-sr-latin.x delete mode 100644 gettext-tools/man/x-to-1.in delete mode 100644 gettext-tools/man/xgettext.x diff --git a/Makefile.am b/Makefile.am index aad2a15..60a2b1b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,7 +28,6 @@ changelog_etc = \ gettext-runtime/intl-java/ChangeLog.0 \ gettext-runtime/libasprintf/ChangeLog.0 \ gettext-runtime/m4/ChangeLog.0 \ - gettext-runtime/man/ChangeLog.0 \ gettext-runtime/src/ChangeLog.0 \ gettext-runtime/tests/ChangeLog.0 \ gettext-tools/ChangeLog.0 \ @@ -39,8 +38,6 @@ changelog_etc = \ gettext-tools/libgettextpo/ChangeLog.0 \ gettext-tools/libgrep/ChangeLog.0 \ gettext-tools/m4/ChangeLog.0 \ - gettext-tools/man/ChangeLog.0 \ - gettext-tools/man/ChangeLog.1 \ gettext-tools/misc/ChangeLog.0 \ gettext-tools/projects/ChangeLog.0 \ gettext-tools/src/ChangeLog.0 \ @@ -122,8 +119,6 @@ distcheck-hook: cmp -s gettext-runtime/intl/vasnprintf.c gettext-runtime/libasprintf/vasnprintf.c cmp -s gettext-runtime/intl/xsize.h gettext-runtime/libasprintf/xsize.h test "`sed 1,16d gettext-runtime/intl/xsize.h | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/xsize.h | md5sum`" - cmp -s gettext-runtime/man/help2man gettext-tools/man/help2man - cmp -s gettext-runtime/man/x-to-1.in gettext-tools/man/x-to-1.in cmp -s gettext-runtime/libasprintf/texi2html gettext-tools/doc/texi2html cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.java gettext-tools/examples/hello-java-swing/m4/TestAWT.java cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.class gettext-tools/examples/hello-java-swing/m4/TestAWT.class diff --git a/gettext-runtime/Makefile.am b/gettext-runtime/Makefile.am index 86df1b3..f51cbc5 100644 --- a/gettext-runtime/Makefile.am +++ b/gettext-runtime/Makefile.am @@ -29,7 +29,7 @@ SUBDIR_libasprintf = libasprintf else SUBDIR_libasprintf = endif -SUBDIRS = doc intl intl-java intl-csharp gnulib-lib $(SUBDIR_libasprintf) src po man m4 tests +SUBDIRS = doc intl intl-java intl-csharp gnulib-lib $(SUBDIR_libasprintf) src po m4 tests EXTRA_DIST = BUGS diff --git a/gettext-tools/Makefile.am b/gettext-tools/Makefile.am index 18c6b8f..cbdea46 100644 --- a/gettext-tools/Makefile.am +++ b/gettext-tools/Makefile.am @@ -19,7 +19,7 @@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 -SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests examples its +SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc m4 tests gnulib-tests examples its EXTRA_DIST = misc/DISCLAIM MOSTLYCLEANFILES = core *.stackdump diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 3b132ed..755f878 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -530,10 +530,6 @@ AC_CONFIG_FILES([misc/gettextize], [chmod a+x misc/gettextize]) AC_CONFIG_FILES([misc/autopoint], [chmod a+x misc/autopoint]) AC_CONFIG_FILES([misc/convert-archive], [chmod a+x misc/convert-archive]) -AC_CONFIG_FILES([man/Makefile], - [FIX_MAKEFILE_DISTRIB]) -AC_CONFIG_FILES([man/x-to-1]) - AC_CONFIG_FILES([m4/Makefile]) AC_CONFIG_FILES([tests/Makefile]) diff --git a/gettext-tools/man/.gitignore b/gettext-tools/man/.gitignore deleted file mode 100644 index ab11524..0000000 --- a/gettext-tools/man/.gitignore +++ /dev/null @@ -1,44 +0,0 @@ -# Files generated by the autotools: -/Makefile.in - -# Files brought in by gnulib-tool: -/x-to-1 - -# Files generated by help2man and groff, from autogen.sh or "make dist": -/autopoint.1 -/gettextize.1 -/msgattrib.1 -/msgcat.1 -/msgcmp.1 -/msgcomm.1 -/msgconv.1 -/msgen.1 -/msgexec.1 -/msgfilter.1 -/msgfmt.1 -/msggrep.1 -/msginit.1 -/msgmerge.1 -/msgunfmt.1 -/msguniq.1 -/recode-sr-latin.1 -/xgettext.1 -/autopoint.1.html -/gettextize.1.html -/msgattrib.1.html -/msgcat.1.html -/msgcmp.1.html -/msgcomm.1.html -/msgconv.1.html -/msgen.1.html -/msgexec.1.html -/msgfilter.1.html -/msgfmt.1.html -/msggrep.1.html -/msginit.1.html -/msgmerge.1.html -/msgunfmt.1.html -/msguniq.1.html -/recode-sr-latin.1.html -/xgettext.1.html - diff --git a/gettext-tools/man/ChangeLog.0 b/gettext-tools/man/ChangeLog.0 deleted file mode 100644 index fa53058..0000000 --- a/gettext-tools/man/ChangeLog.0 +++ /dev/null @@ -1,153 +0,0 @@ -2002-08-06 Bruno Haible - - * gettext-0.11.5 released. - -2002-07-25 Bruno Haible - - * gettext-0.11.4 released. - -2002-07-17 Bruno Haible - - * gettext-0.11.3 released. - -2002-05-03 Bruno Haible - - * gettextize.x: New file. - * autopoint.x: New file. - * Makefile.am (man_aux): Add gettextize.x, autopoint.x. - (man_MAN1OTHER): Add gettextize.1, autopoint.1. - (man_HTMLOTHER): Add gettextize.1.html, autopoint.1.html. - (gettextize.1, autopoint.1): New rules. - (gettextize.1.html, autopoint.1.html): New rules. - -2002-04-24 Bruno Haible - - * gettext-0.11.2 released. - -2002-03-12 Bruno Haible - - * gettext-0.11.1 released. - -2002-01-31 Bruno Haible - - * gettext-0.11 released. - -2001-12-08 Bruno Haible - - * msgfilter.x: Renamed from msgexec.x. - * msgexec.x: New file. - * Makefile.am (man_aux): Add msgfilter.x. - (man_MAN1OTHER): Add msgfilter.1. - (man_HTMLOTHER): Add msgfilter.1.html. - (msgfilter.1): New rule. - (msgfilter.1.html): New rule. - -2001-10-08 Bruno Haible - - * msginit.x: New file. - * Makefile.am (man_aux): Add msginit.x. - (man_MAN1OTHER): Add msginit.1. - (man_HTMLOTHER): Add msginit.1.html. - (msginit.1): New rule. - (msginit.1.html): New rule. - -2001-09-08 Bruno Haible - - * msgattrib.x: New file. - * Makefile.am (man_aux): Add msgattrib.x. - (man_MAN1OTHER): Add msgattrib.1. - (man_HTMLOTHER): Add msgattrib.1.html. - (msgattrib.1): New rule. - (msgattrib.1.html): New rule. - -2001-07-28 Bruno Haible - - * x-to-1.in: New file. - * Makefile.am (localedir): New variable. - (man_MAN1GEN, man_MAN1IN, man_MAN1OTHER, man_MAN3LINK, man_HTMLGEN, - man_HTMLIN, man_HTMLOTHER): New variables. - (EXTRA_DIST): Remove gettext.1, ngettext.1, gettext.1.html, - ngettext.1.html. Add gettext.1.in, ngettext.1.in, gettext.1.html.in, - ngettext.1.html.in. - (MAINTAINERCLEANFILES): Likewise. - (CLEANFILES): New variable. - (SUFFIXES): Remove variable. - (.x.1): Remove rule. - (gettext.1, ngettext.1, gettext.1.in, ngettext.1.in, msgcmp.1, - msgfmt.1, msgmerge.1, msgunfmt.1, xgettext.1, msgcat.1, msgcomm.1, - msgconv.1, msgen.1, msgexec.1, msggrep.1, msguniq.1): New rules. - (gettext.1.html.in, ngettext.1.html.in): New rules. - (gettext.1.html, ngettext.1.html): Generated from corresponding .in - files. - (*.1.html): Remove CreationDate line from MAN2HTML output. - -2001-07-21 Bruno Haible - - * msguniq.x: New file. - * Makefile.am (man_aux): Add it. - (man_MAN1): Add msguniq.1. - (man_HTML): Add msguniq.1.html. - (msguniq.1.html): New rule. - -2001-07-12 Bruno Haible - - * msgexec.x: New file. - * msgsed.x: Remove file. - * Makefile.am (man_aux): Replace msgsed.x with msgexec.x. - (man_MAN1): Replace msgsed.1 with msgexec.1. - (man_HTML): Replace msgsed.1.html with msgexec.1.html. - (msgexec.1.html): New rule. - (msgsed.1.html): Remove rule. - -2001-06-10 Bruno Haible - - * help2man: New file, from help2man-1.24. - * gettext.x: New file. - * msgcat.x: New file. - * msgcmp.x: New file. - * msgcomm.x: New file. - * msgconv.x: New file. - * msgen.x: New file. - * msgfmt.x: New file. - * msggrep.x: New file. - * msgmerge.x: New file. - * msgsed.x: New file. - * msgunfmt.x: New file. - * ngettext.x: New file. - * xgettext.x: New file. - * Makefile.am (man_aux, man_MAN1): New variables. - (man_MANS): Add $(man_MAN1). - (man_HTML): Add *.1.html for all programs. - (EXTRA_DIST): Add help2man, $(man_aux). - (SUFFIXES): Recognize .1 and .x. - (PERL): New variable. - (HELP2MAN): New variable. - (.x.1): New rule. - ($(man_MAN1)): Depend on help2man and configure.in. - (gettext.1.html, ngettext.1.html, msgcmp.1.html, msgfmt.1.html, - msgmerge.1.html, msgunfmt.1.html, xgettext.1.html, msgcat.1.html, - msgcomm.1.html, msgconv.1.html, msgen.1.html, msggrep.1.html, - msgsed.1.html): New rules. - -2001-09-13 Bruno Haible - - * gettext-0.10.40 released. - -2001-07-24 Bruno Haible - - * gettext-0.10.39 released. - -2001-05-23 Bruno Haible - - * gettext-0.10.38 released. - -2001-05-20 Bruno Haible - - * Makefile.am: New file. - * gettext.3.in: New file. - * ngettext.3.in: New file. - * textdomain.3.in: New file. - * bindtextdomain.3.in: New file. - * bind_textdomain_codeset.3.in: New file. - * dgettext.3, dcgettext.3, dngettext.3, dcngettext.3: New files. - diff --git a/gettext-tools/man/ChangeLog.1 b/gettext-tools/man/ChangeLog.1 deleted file mode 100644 index 527b67a..0000000 --- a/gettext-tools/man/ChangeLog.1 +++ /dev/null @@ -1,229 +0,0 @@ -2015-09-11 Daiki Ueno - - * gettext 0.19.6 released. - -2015-07-10 Daiki Ueno - - * gettext 0.19.5 released. - -2015-06-23 Daiki Ueno - - * help2man: Update copyright year. - -2014-12-24 Daiki Ueno - - * gettext 0.19.4 released. - -2014-10-15 Daiki Ueno - - * gettext 0.19.3 released. - -2014-07-14 Daiki Ueno - - * gettext 0.19.2 released. - -2014-06-10 Daiki Ueno - - * gettext 0.19.1 released. - -2014-06-02 Daiki Ueno - - * gettext 0.19 released. - -2014-05-19 Daiki Ueno - - build: Simplify man and HTML documentation generation - Problem reported by Santiago Vila in: - . - * Makefile.am (man_MAN1SRC): New variable; rename from man_MAN1OTHER. - (man_MAN1MISC): New variable; split from man_MAN1OTHER. - (gt_man2html): New variable; don't overwrite output if groff fails. - ($(man_MAN1SRC)): Factor out the common generation logic. - ($(man_MAN1MISC)): Likewise. - ($(man_HTML)): Rewrite using $(gt_man2html). - -2014-04-22 Daiki Ueno - - * Makefile.am: Refer to .version instead of version.sh. - -2013-06-10 Daiki Ueno - - * Makefile.am: Use $(MKDIR_P) instead of $(mkdir_p). - Suggested by Stefano Lattarini in - . - -2012-12-25 Daiki Ueno - - * gettext-0.18.2 released. - -2010-06-04 Bruno Haible - - * gettext-0.18.1 released. - -2010-05-09 Bruno Haible - - * gettext-0.18 released. - -2007-11-07 Bruno Haible - - * gettext-0.17 released. - -2007-10-27 Bruno Haible - - * recode-sr-latin.x: New file. - * Makefile.am (man_aux): Add recode-sr-latin.x. - (man_MAN1OTHER): Add recode-sr-latin.1. - (man_HTMLOTHER): Add recode-sr-latin.1.html. - (recode-sr-latin.1, recode-sr-latin.1.html): New rules. - -2006-11-27 Bruno Haible - - * gettext-0.16.1 released. - -2006-10-26 Bruno Haible - - * gettext-0.16 released. - -2006-10-16 Bruno Haible - - Switch to automake-1.10. - * Makefile.am (install-html-local): Renamed from install-html. - -2006-07-25 Bruno Haible - - * Makefile.msvc: Remove file. - * Makefile.am (EXTRA_DIST): Remove Makefile.msvc. - -2006-07-25 Bruno Haible - - * Makefile.vms: Remove file. - * Makefile.am (EXTRA_DIST): Remove Makefile.vms. - -2006-07-21 Bruno Haible - - * gettext-0.15 released. - -2006-04-14 Bruno Haible - - Assume autoconf >= 2.60. - * Makefile.am (mandir, docdir, htmldir, localedir): Remove variables. - -2006-04-17 Bruno Haible - - * Makefile.am: Use $(mkdir_p) instead of $(mkinstalldirs). - -2006-06-21 Bruno Haible - - * gettext-0.14.6 released. - -2005-05-23 Bruno Haible - - * gettext-0.14.5 released. - -2005-04-11 Bruno Haible - - * gettext-0.14.4 released. - -2005-03-14 Bruno Haible - - * gettext-0.14.3 released. - -2005-02-24 Bruno Haible - - * gettext-0.14.2 released. - -2004-01-29 Bruno Haible - - * gettext-0.14.1 released. - -2004-01-28 Bruno Haible - - * gettext-0.14 released. - -2003-12-12 Bruno Haible - - Assume automake-1.8. - * Makefile.am (html-local): Renamed from html. - -2003-12-17 Bruno Haible - - * gettext-0.13.1 released. - -2003-11-30 Bruno Haible - - * gettext-0.13 released. - -2003-11-16 Bruno Haible - - * x-to-1.in: Support --update option. - * Makefile.am (UPDATEMODE): New variable. - (msgcmp.1, msgfmt.1, msgmerge.1, msgunfmt.1, xgettext.1, msgattrib.1, - msgcat.1, msgcomm.1, msgconv.1, msgen.1, msgexec.1, msgfilter.1, - msggrep.1, msginit.1, msguniq.1, gettextize.1, autopoint.1): Pass it to - x-to-1. - (update-man1): New rule. - (distdir): Depend on it. - -2003-11-13 Bruno Haible - - * Makefile.am (docdir): Use the value from the configure script. - -2003-05-22 Bruno Haible - - * gettext-0.12.1 released. - -2003-05-17 Bruno Haible - - * gettext-0.12 released. - -2003-04-12 Bruno Haible - - * Makefile.vms: Avoid rules with no lines. Don't use the force target. - Correct wildcard syntax. - Suggested by Jouk Jansen . - -2003-04-12 Bruno Haible - - * Makefile.am (docdir): Use datadir instead of prefix. - * Makefile.msvc (datadir): New variable. - (mandir, docdir): Use it instead of prefix. - (install, installdirs): Update. - * Makefile.vms (datadir): New variable. - (mandir, docdir): Use it instead of prefix. - -2003-03-30 Bruno Haible - - * Makefile.vms: New file. - * Makefile.am (EXTRA_DIST): Add Makefile.vms. - -2003-03-17 Bruno Haible - - Native Woe32/MSVC support. - * Makefile.msvc: New file. - * Makefile.am (EXTRA_DIST): Add it. - -2003-02-22 Bruno Haible - - * Makefile.am (installdirs): Remove dependency, redundant with - automake >= 1.6. - -2003-02-15 Bruno Haible - - * gettext.3.in, ngettext.3.in, textdomain.3.in, bindtextdomain.3.in, - bind_textdomain_codeset.3.in: Move to ../../gettext-runtime/man. - * dgettext.3, dcgettext.3, dngettext.3, dcngettext.3: Likewise. - * Makefile.am: Remove rules for man3 manual pages. - -2003-02-12 Bruno Haible - - Big restructuring. - * gettext.x: Remove file. - * ngettext.x: Remove file. - * Makefile.am: Remove everything belonging to the programs gettext and - ngettext. - (docdir): Use 'gettext' instead of @PACKAGE@. - (*.3): Depend on version.sh instead of configure.in. - (EXTRA_DIST): Add ChangeLog.0. - - -See ChangeLog.0 for earlier changes. diff --git a/gettext-tools/man/Makefile.am b/gettext-tools/man/Makefile.am deleted file mode 100644 index e50b2eb..0000000 --- a/gettext-tools/man/Makefile.am +++ /dev/null @@ -1,169 +0,0 @@ -## Makefile for the gettext-tools/man subdirectory of GNU gettext -## Copyright (C) 2001-2003, 2006-2007, 2015-2016 Free Software Foundation, Inc. -## -## This program is free software: you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 3 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with this program. If not, see . - -## Process this file with automake to produce Makefile.in. - -VERSION = @VERSION@ - -AUTOMAKE_OPTIONS = 1.2 gnits -EXTRA_DIST = - -# A manual page for each of the bin_PROGRAMS in src/Makefile.am -# and for each of the bin_SCRIPTS in misc/Makefile.am. - -man_aux = \ -msgcmp.x msgfmt.x msgmerge.x msgunfmt.x xgettext.x \ -msgattrib.x msgcat.x msgcomm.x msgconv.x msgen.x msgexec.x msgfilter.x \ -msggrep.x msginit.x msguniq.x \ -recode-sr-latin.x \ -gettextize.x autopoint.x - -# Likewise. - -man_MAN1SRC = \ -msgcmp.1 msgfmt.1 msgmerge.1 msgunfmt.1 xgettext.1 \ -msgattrib.1 msgcat.1 msgcomm.1 msgconv.1 msgen.1 msgexec.1 msgfilter.1 \ -msggrep.1 msginit.1 msguniq.1 \ -recode-sr-latin.1 -man_MAN1MISC = \ -gettextize.1 autopoint.1 -man_MAN1 = $(man_MAN1SRC) $(man_MAN1MISC) -man_MANS = $(man_MAN1) - -man_HTML = \ -msgcmp.1.html msgfmt.1.html msgmerge.1.html msgunfmt.1.html xgettext.1.html \ -msgattrib.1.html msgcat.1.html msgcomm.1.html msgconv.1.html msgen.1.html \ -msgexec.1.html msgfilter.1.html msggrep.1.html msginit.1.html msguniq.1.html \ -recode-sr-latin.1.html \ -gettextize.1.html autopoint.1.html - -EXTRA_DIST += help2man $(man_aux) $(man_MANS) $(man_HTML) -MAINTAINERCLEANFILES = $(man_MANS) $(man_HTML) - -PERL = @PERL@ -RM = rm -f - -# help2man 1.24 or newer. -HELP2MAN = $(PERL) -w -- $(srcdir)/help2man - -# groff 1.17 or newer. -MAN2HTML = groff -mandoc -Thtml - -UPDATEMODE = - - -gt_man2html = \ - if test -f $${srcdir}$$m; then \ - $(MAN2HTML) $${srcdir}$$m > t-$@ && \ - sed -e '/CreationDate:/d' < t-$@ > t2-$@ && \ - mv t2-$@ $@; \ - rm -f t-$@ t2-$@; \ - fi - - -# We distribute both the man pages and their HTML equivalent. -# The user can generate the parts, via -# make man -# make html - -all-local: html-local -install-data-local: install-html -installdirs-local: installdirs-html -uninstall-local: uninstall-html - - -# Man pages. - -# The progname.x files contain some extra information not found in the -# "progname --help" output. progname.1 depends on the source, not the -# binary; we don't need to regenerate the binary when any source file -# changes, only the main one. - -$(man_MAN1SRC): help2man $(top_srcdir)/../.version - progname=`echo $@ | sed -e 's/\.in$$//' -e 's/\.1$$//'`; \ - IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" \ - ../src/$${progname}$(EXEEXT) $(srcdir)/$${progname}.x $@ - -msgcmp.1: msgcmp.x ../src/msgcmp.c -msgfmt.1: msgfmt.x ../src/msgfmt.c -msgmerge.1: msgmerge.x ../src/msgmerge.c -msgunfmt.1: msgunfmt.x ../src/msgunfmt.c -xgettext.1: xgettext.x ../src/xgettext.c -msgattrib.1: msgattrib.x ../src/msgattrib.c -msgcat.1: msgcat.x ../src/msgcat.c -msgcomm.1: msgcomm.x ../src/msgcomm.c -msgconv.1: msgconv.x ../src/msgconv.c -msgen.1: msgen.x ../src/msgen.c -msgexec.1: msgexec.x ../src/msgexec.c -msgfilter.1: msgfilter.x ../src/msgfilter.c -msggrep.1: msggrep.x ../src/msggrep.c -msginit.1: msginit.x ../src/msginit.c -msguniq.1: msguniq.x ../src/msguniq.c -recode-sr-latin.1: recode-sr-latin.x ../src/recode-sr-latin.c - -$(man_MAN1MISC): help2man $(top_srcdir)/../.version - progname=`echo $@ | sed -e 's/\.in$$//' -e 's/\.1$$//'`; \ - IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" \ - ../misc/$${progname}$(EXEEXT) $(srcdir)/$${progname}.x $@ - -gettextize.1: gettextize.x ../misc/gettextize.in -autopoint.1: autopoint.x ../misc/autopoint.in - - -# Man pages in HTML format. - -html-local: $(man_HTML) - -$(man_HTML): - srcdir=''; \ - progname=`echo $@ | sed -e 's/\.1\.html$$//'`; \ - m=$${progname}.1; \ - test -f ./$$m || srcdir=$(srcdir)/; \ - $(gt_man2html) - -msgcmp.1.html: msgcmp.1 -msgfmt.1.html: msgfmt.1 -msgmerge.1.html: msgmerge.1 -msgunfmt.1.html: msgunfmt.1 -xgettext.1.html: xgettext.1 -msgattrib.1.html: msgattrib.1 -msgcat.1.html: msgcat.1 -msgcomm.1.html: msgcomm.1 -msgconv.1.html: msgconv.1 -msgen.1.html: msgen.1 -msgexec.1.html: msgexec.1 -msgfilter.1.html: msgfilter.1 -msggrep.1.html: msggrep.1 -msginit.1.html: msginit.1 -msguniq.1.html: msguniq.1 -recode-sr-latin.1.html: recode-sr-latin.1 -gettextize.1.html: gettextize.1 -autopoint.1.html: autopoint.1 - -install-html-local: - $(MKDIR_P) $(DESTDIR)$(htmldir) - for file in $(man_HTML); do \ - if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ - $(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(htmldir)/$$file; \ - done - -installdirs-html: - $(MKDIR_P) $(DESTDIR)$(htmldir) - -uninstall-html: - for file in $(man_HTML); do \ - $(RM) $(DESTDIR)$(htmldir)/$$file; \ - done diff --git a/gettext-tools/man/autopoint.x b/gettext-tools/man/autopoint.x deleted file mode 100644 index 4f7a114..0000000 --- a/gettext-tools/man/autopoint.x +++ /dev/null @@ -1,4 +0,0 @@ -[NAME] -autopoint \- copies standard gettext infrastructure -[DESCRIPTION] -.\" Add any additional description here diff --git a/gettext-tools/man/gettextize.x b/gettext-tools/man/gettextize.x deleted file mode 100644 index 6dfddf5..0000000 --- a/gettext-tools/man/gettextize.x +++ /dev/null @@ -1,4 +0,0 @@ -[NAME] -gettextize \- install or upgrade gettext infrastructure -[DESCRIPTION] -.\" Add any additional description here diff --git a/gettext-tools/man/help2man b/gettext-tools/man/help2man deleted file mode 100755 index 296778d..0000000 --- a/gettext-tools/man/help2man +++ /dev/null @@ -1,530 +0,0 @@ -#!/usr/bin/perl -w - -# Generate a short man page from --help and --version output. -# Copyright © 1997, 1998, 1999, 2000 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# Written by Brendan O'Dea -# Available from ftp://ftp.gnu.org/gnu/help2man/ - -use 5.004; -use strict; -use Getopt::Long; -use Text::Tabs qw(expand); -use POSIX qw(strftime setlocale LC_TIME); - -my $this_program = 'help2man'; -my $this_version = '1.24'; -my $version_info = < -EOT - -my $help_info = <. -EOT - -my $section = 1; -my ($opt_name, @opt_include, $opt_output, $opt_no_info); -my %opt_def = ( - 'n|name=s' => \$opt_name, - 's|section=s' => \$section, - 'i|include=s' => sub { push @opt_include, [ pop, 1 ] }, - 'I|opt-include=s' => sub { push @opt_include, [ pop, 0 ] }, - 'o|output=s' => \$opt_output, - 'N|no-info' => \$opt_no_info, -); - -# Parse options. -Getopt::Long::config('bundling'); -GetOptions (%opt_def, - help => sub { print $help_info; exit }, - version => sub { print $version_info; exit }, -) or die $help_info; - -die $help_info unless @ARGV == 1; - -my %include = (); -my %append = (); -my @include = (); # retain order given in include file - -# Provide replacement `quote-regex' operator for pre-5.005. -BEGIN { eval q(sub qr { '' =~ $_[0]; $_[0] }) if $] < 5.005 } - -# Process include file (if given). Format is: -# -# [section name] -# verbatim text -# -# or -# -# /pattern/ -# verbatim text -# - -while (@opt_include) -{ - my ($inc, $required) = @{shift @opt_include}; - - next unless -f $inc or $required; - die "$this_program: can't open `$inc' ($!)\n" - unless open INC, $inc; - - my $key; - my $hash = \%include; - - while () - { - # [section] - if (/^\[([^]]+)\]/) - { - $key = uc $1; - $key =~ s/^\s+//; - $key =~ s/\s+$//; - $hash = \%include; - push @include, $key unless $include{$key}; - next; - } - - # /pattern/ - if (m!^/(.*)/([ims]*)!) - { - my $pat = $2 ? "(?$2)$1" : $1; - - # Check pattern. - eval { $key = qr($pat) }; - if ($@) - { - $@ =~ s/ at .*? line \d.*//; - die "$inc:$.:$@"; - } - - $hash = \%append; - next; - } - - # Check for options before the first section--anything else is - # silently ignored, allowing the first for comments and - # revision info. - unless ($key) - { - # handle options - if (/^-/) - { - local @ARGV = split; - GetOptions %opt_def; - } - - next; - } - - $hash->{$key} ||= ''; - $hash->{$key} .= $_; - } - - close INC; - - die "$this_program: no valid information found in `$inc'\n" - unless $key; -} - -# Compress trailing blank lines. -for my $hash (\(%include, %append)) -{ - for (keys %$hash) { $hash->{$_} =~ s/\n+$/\n/ } -} - -# Turn off localisation of executable's ouput. -@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3; - -# Turn off localisation of date (for strftime). -setlocale LC_TIME, 'C'; - -# Grab help and version info from executable. -my ($help_text, $version_text) = map { - join '', map { s/ +$//; expand $_ } `$ARGV[0] --$_ 2>/dev/null` - or die "$this_program: can't get `--$_' info from $ARGV[0]\n" -} qw(help version); - -my $date = strftime "%B %Y", localtime; -(my $program = $ARGV[0]) =~ s!.*/!!; -my $package = $program; -my $version; - -if ($opt_output) -{ - unlink $opt_output - or die "$this_program: can't unlink $opt_output ($!)\n" - if -e $opt_output; - - open STDOUT, ">$opt_output" - or die "$this_program: can't create $opt_output ($!)\n"; -} - -# The first line of the --version information is assumed to be in one -# of the following formats: -# -# -# -# {GNU,Free} -# ({GNU,Free} ) -# - {GNU,Free} -# -# and seperated from any copyright/author details by a blank line. - -($_, $version_text) = split /\n+/, $version_text, 2; - -if (/^(\S+) +\(((?:GNU|Free) +[^)]+)\) +(.*)/ or - /^(\S+) +- *((?:GNU|Free) +\S+) +(.*)/) -{ - $program = $1; - $package = $2; - $version = $3; -} -elsif (/^((?:GNU|Free) +)?(\S+) +(.*)/) -{ - $program = $2; - $package = $1 ? "$1$2" : $2; - $version = $3; -} -else -{ - $version = $_; -} - -$program =~ s!.*/!!; - -# No info for `info' itself. -$opt_no_info = 1 if $program eq 'info'; - -# --name overrides --include contents. -$include{NAME} = "$program \\- $opt_name\n" if $opt_name; - -# Default (useless) NAME paragraph. -$include{NAME} ||= "$program \\- manual page for $program $version\n"; - -# Man pages traditionally have the page title in caps. -my $PROGRAM = uc $program; - -# Extract usage clause(s) [if any] for SYNOPSIS. -if ($help_text =~ s/^Usage:( +(\S+))(.*)((?:\n(?: {6}\1| *or: +\S).*)*)//m) -{ - my @syn = $2 . $3; - - if ($_ = $4) - { - s/^\n//; - for (split /\n/) { s/^ *(or: +)?//; push @syn, $_ } - } - - my $synopsis = ''; - for (@syn) - { - $synopsis .= ".br\n" if $synopsis; - s!^\S*/!!; - s/^(\S+) *//; - $synopsis .= ".B $1\n"; - s/\s+$//; - s/(([][]|\.\.+)+)/\\fR$1\\fI/g; - s/^/\\fI/ unless s/^\\fR//; - $_ .= '\fR'; - s/(\\fI)( *)/$2$1/g; - s/\\fI\\fR//g; - s/^\\fR//; - s/\\fI$//; - s/^\./\\&./; - - $synopsis .= "$_\n"; - } - - $include{SYNOPSIS} ||= $synopsis; -} - -# Process text, initial section is DESCRIPTION. -my $sect = 'DESCRIPTION'; -$_ = "$help_text\n\n$version_text"; - -# Normalise paragraph breaks. -s/^\n+//; -s/\n*$/\n/; -s/\n\n+/\n\n/g; - -# Temporarily exchange leading dots, apostrophes and backslashes for -# tokens. -s/^\./\x80/mg; -s/^'/\x81/mg; -s/\\/\x82/g; - -# Start a new paragraph (if required) for these. -s/([^\n])\n(Report +bugs|Email +bug +reports +to|Written +by)/$1\n\n$2/g; - -sub convert_option; - -while (length) -{ - # Convert some standard paragraph names. - if (s/^(Options|Examples): *\n//) - { - $sect = uc $1; - next; - } - - # Copyright section - if (/^Copyright +[(\xa9]/) - { - $sect = 'COPYRIGHT'; - $include{$sect} ||= ''; - $include{$sect} .= ".PP\n" if $include{$sect}; - - my $copy; - ($copy, $_) = split /\n\n/, $_, 2; - - for ($copy) - { - # Add back newline - s/\n*$/\n/; - - # Convert iso9959-1 copyright symbol or (c) to nroff - # character. - s/^Copyright +(?:\xa9|\([Cc]\))/Copyright \\(co/mg; - - # Insert line breaks before additional copyright messages - # and the disclaimer. - s/(.)\n(Copyright |This +is +free +software)/$1\n.br\n$2/g; - - # Join hyphenated lines. - s/([A-Za-z])-\n */$1/g; - } - - $include{$sect} .= $copy; - $_ ||= ''; - next; - } - - # Catch bug report text. - if (/^(Report +bugs|Email +bug +reports +to) /) - { - $sect = 'REPORTING BUGS'; - } - - # Author section. - elsif (/^Written +by/) - { - $sect = 'AUTHOR'; - } - - # Examples, indicated by an indented leading $, % or > are - # rendered in a constant width font. - if (/^( +)([\$\%>] )\S/) - { - my $indent = $1; - my $prefix = $2; - my $break = '.IP'; - $include{$sect} ||= ''; - while (s/^$indent\Q$prefix\E(\S.*)\n*//) - { - $include{$sect} .= "$break\n\\f(CW$prefix$1\\fR\n"; - $break = '.br'; - } - - next; - } - - my $matched = ''; - $include{$sect} ||= ''; - - # Sub-sections have a trailing colon and the second line indented. - if (s/^(\S.*:) *\n / /) - { - $matched .= $& if %append; - $include{$sect} .= qq(.SS "$1"\n); - } - - my $indent = 0; - my $content = ''; - - # Option with description. - if (s/^( {1,10}([+-]\S.*?))(?:( +)|\n( {20,}))(\S.*)\n//) - { - $matched .= $& if %append; - $indent = length ($4 || "$1$3"); - $content = ".TP\n\x83$2\n\x83$5\n"; - unless ($4) - { - # Indent may be different on second line. - $indent = length $& if /^ {20,}/; - } - } - - # Option without description. - elsif (s/^ {1,10}([+-]\S.*)\n//) - { - $matched .= $& if %append; - $content = ".HP\n\x83$1\n"; - $indent = 80; # not continued - } - - # Indented paragraph with tag. - elsif (s/^( +(\S.*?) +)(\S.*)\n//) - { - $matched .= $& if %append; - $indent = length $1; - $content = ".TP\n\x83$2\n\x83$3\n"; - } - - # Indented paragraph. - elsif (s/^( +)(\S.*)\n//) - { - $matched .= $& if %append; - $indent = length $1; - $content = ".IP\n\x83$2\n"; - } - - # Left justified paragraph. - else - { - s/(.*)\n//; - $matched .= $& if %append; - $content = ".PP\n" if $include{$sect}; - $content .= "$1\n"; - } - - # Append continuations. - while (s/^ {$indent}(\S.*)\n//) - { - $matched .= $& if %append; - $content .= "\x83$1\n" - } - - # Move to next paragraph. - s/^\n+//; - - for ($content) - { - # Leading dot and apostrophe protection. - s/\x83\./\x80/g; - s/\x83'/\x81/g; - s/\x83//g; - - # Convert options. - s/(^| )(-[][\w=-]+)/$1 . convert_option $2/mge; - } - - # Check if matched paragraph contains /pat/. - if (%append) - { - for my $pat (keys %append) - { - if ($matched =~ $pat) - { - $content .= ".PP\n" unless $append{$pat} =~ /^\./; - $content .= $append{$pat}; - } - } - } - - $include{$sect} .= $content; -} - -# Refer to the real documentation. -unless ($opt_no_info) -{ - $sect = 'SEE ALSO'; - $include{$sect} ||= ''; - $include{$sect} .= ".PP\n" if $include{$sect}; - $include{$sect} .= <. -# - -# This program creates a program's manual from the .x skeleton and its --help -# output. - -update= -while true; do - case "$1" in - --update) update=yes; shift;; - *) break;; - esac -done - -if test $# != 5; then - echo "Usage: x-to-1 [OPTIONS] PERL HELP2MAN executable program.x program.1" 1>&2 - exit 1 -fi -PERL="$1" -HELP2MAN="$2" -executable="$3" -aux="$4" -output="$5" - -progname=`basename $aux .x` -case "$PERL" in *"/missing perl") perlok=no;; *) perlok=yes;; esac -if test @CROSS_COMPILING@ = no && test -f $executable && test $perlok = yes; then - echo "Updating man page $output" - echo "$HELP2MAN --include=$aux $executable > $output" - rm -f t-$progname.1 - $HELP2MAN --include=$aux $executable > t-$progname.1 || exit 1 - if test -n "$update"; then - # In --update mode, don't overwrite the output if nothing would change. - if cmp t-$progname.1 $output >/dev/null 2>&1; then - rm -f t-$progname.1 - else - mv t-$progname.1 $output - fi - else - mv t-$progname.1 $output - fi -else - echo "WARNING: The man page $output cannot be updated yet." -fi diff --git a/gettext-tools/man/xgettext.x b/gettext-tools/man/xgettext.x deleted file mode 100644 index 45d54a2..0000000 --- a/gettext-tools/man/xgettext.x +++ /dev/null @@ -1,4 +0,0 @@ -[NAME] -xgettext \- extract gettext strings from source -[DESCRIPTION] -.\" Add any additional description here -- cgit v1.1