71ca0d
Description: supply manual page for program that doesn't have one
71ca0d
Author: Jay Berkenbilt <qjb@debian.org>
71ca0d
Bug: http://bugs.icu-project.org/trac/ticket/7665
71ca0d
erAck: adapted to ICU 56.1 icu/source/tools/icuinfo/Makefile.in
71ca0d
71ca0d
diff -Nur orig.icu/source/tools/icuinfo/icuinfo.1.in icu/source/tools/icuinfo/icuinfo.1.in
71ca0d
--- orig.icu/source/tools/icuinfo/icuinfo.1.in	1970-01-01 01:00:00.000000000 +0100
71ca0d
+++ icu/source/tools/icuinfo/icuinfo.1.in	2015-10-27 19:19:35.184056800 +0100
71ca0d
@@ -0,0 +1,76 @@
71ca0d
+.\" Hey, Emacs! This is -*-nroff-*- you know...
71ca0d
+.\"
71ca0d
+.\" icuinfo.1: manual page for the icuinfo utility
71ca0d
+.\"
71ca0d
+.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
71ca0d
+.\"
71ca0d
+.TH ICUINFO 1 "1 May 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
71ca0d
+.SH NAME
71ca0d
+.B icuinfo
71ca0d
+\- Shows some basic info about the current ICU
71ca0d
+.SH SYNOPSIS
71ca0d
+.B icuinfo
71ca0d
+[
71ca0d
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
71ca0d
+]
71ca0d
+[
71ca0d
+.BR "\-V\fP, \fB\-\-version"
71ca0d
+]
71ca0d
+[
71ca0d
+.BR "\-c\fP, \fB\-\-copyright"
71ca0d
+]
71ca0d
+[
71ca0d
+.BI "\-i\fP, \fB\-\-icudatadir" " directory"
71ca0d
+]
71ca0d
+[
71ca0d
+.BR "\-v\fP, \fB\-\-verbose"
71ca0d
+]
71ca0d
+[
71ca0d
+.BI "\-L\fP, \fB\-\-list-plugins"
71ca0d
+]
71ca0d
+[
71ca0d
+.BI "\-m\fP, \fB\-\-milisecond-time"
71ca0d
+]
71ca0d
+[
71ca0d
+.BI "\-K\fP, \fB\-\-cleanup"
71ca0d
+]
71ca0d
+.SH DESCRIPTION
71ca0d
+.B icuinfo
71ca0d
+prints basic information about the current version of ICU.
71ca0d
+.SH OPTIONS
71ca0d
+.TP
71ca0d
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
71ca0d
+Print help about usage and exit.
71ca0d
+.TP
71ca0d
+.BR "\-V\fP, \fB\-\-version"
71ca0d
+Print the version of
71ca0d
+.B icuinfo
71ca0d
+and exit.
71ca0d
+.TP
71ca0d
+.BR "\-c\fP, \fB\-\-copyright"
71ca0d
+Embeds the standard ICU copyright into the
71ca0d
+.IR output-file .
71ca0d
+.TP
71ca0d
+.BR "\-v\fP, \fB\-\-verbose"
71ca0d
+Display extra informative messages during execution.
71ca0d
+.TP
71ca0d
+.BI "\-i\fP, \fB\-\-icudatadir" " directory"
71ca0d
+Look for any necessary ICU data files in
71ca0d
+.IR directory .
71ca0d
+For example, the file
71ca0d
+.B pnames.icu
71ca0d
+must be located when ICU's data is not built as a shared library.
71ca0d
+The default ICU data directory is specified by the environment variable
71ca0d
+.BR ICU_DATA .
71ca0d
+Most configurations of ICU do not require this argument.
71ca0d
+.TP
71ca0d
+.BI "\-L\fP, \fB\-\-list-plugins"
71ca0d
+If specified, list and diagnose issues with ICU plugins.
71ca0d
+.TP
71ca0d
+.BI "\-K\fP, \fB\-\-cleanup"
71ca0d
+Attempt to unload plugins before exiting.
71ca0d
+.TP
71ca0d
+.BI "\-m\fP, \fB\-\-milisecond-time"
71ca0d
+Print the current UTC time in milliseconds.
71ca0d
+.SH COPYRIGHT
71ca0d
+Copyright (C) 2010 International Business Machines Corporation and others
71ca0d
diff -Nur orig.icu/source/tools/icuinfo/Makefile.in icu/source/tools/icuinfo/Makefile.in
71ca0d
--- orig.icu/source/tools/icuinfo/Makefile.in	2015-10-08 05:53:56.000000000 +0200
71ca0d
+++ icu/source/tools/icuinfo/Makefile.in	2015-10-27 19:23:19.115509906 +0100
71ca0d
@@ -14,8 +14,15 @@
71ca0d
 ## Build directory information
71ca0d
 subdir = tools/icuinfo
71ca0d
 
71ca0d
+TARGET_STUB_NAME = icuinfo
71ca0d
+
71ca0d
+SECTION = 1
71ca0d
+
71ca0d
+MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
71ca0d
+
71ca0d
+
71ca0d
 ## Extra files to remove for 'make clean'
71ca0d
-CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN)
71ca0d
+CLEANFILES = *~ $(DEPS) $(PLUGIN_OBJECTS) $(PLUGINFILE) $(PLUGIN) $(MAN_FILES)
71ca0d
 
71ca0d
 ## Target information
71ca0d
 TARGET = icuinfo$(EXEEXT)
71ca0d
@@ -35,7 +42,8 @@
71ca0d
 
71ca0d
 ## List of phony targets
71ca0d
 .PHONY : all all-local install install-local clean clean-local		\
71ca0d
-distclean distclean-local dist dist-local check check-local plugin-check
71ca0d
+distclean distclean-local dist dist-local check check-local plugin-check \
71ca0d
+install-man
71ca0d
 
71ca0d
 ## Clear suffix list
71ca0d
 .SUFFIXES :
71ca0d
@@ -48,12 +56,16 @@
71ca0d
 dist: dist-local
71ca0d
 check: all check-local
71ca0d
 
71ca0d
-all-local: $(TARGET) 
71ca0d
+all-local: $(TARGET) $(MAN_FILES)
71ca0d
 
71ca0d
-install-local: all-local
71ca0d
+install-local: all-local install-man
71ca0d
 	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
71ca0d
 	$(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
71ca0d
 
71ca0d
+install-man: $(MAN_FILES)
71ca0d
+	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
71ca0d
+	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
71ca0d
+
71ca0d
 dist-local:
71ca0d
 
71ca0d
 clean-local:
71ca0d
@@ -103,6 +115,10 @@
71ca0d
 	@echo "Plugins are disabled (use --enable-plugins to enable)"
71ca0d
 endif
71ca0d
 
71ca0d
+%.$(SECTION): $(srcdir)/%.$(SECTION).in
71ca0d
+	cd $(top_builddir) \
71ca0d
+	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
71ca0d
+
71ca0d
 ifeq (,$(MAKECMDGOALS))
71ca0d
 -include $(DEPS)
71ca0d
 else