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