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