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