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