92ecab
Description: supply manual page for program that doesn't have one
92ecab
Author: Jay Berkenbilt <qjb@debian.org>
92ecab
Bug: http://bugs.icu-project.org/trac/ticket/7554
92ecab
92ecab
diff -r -u -N icu.orig/source/tools/gennorm2/gennorm2.8.in icu/source/tools/gennorm2/gennorm2.8.in
92ecab
--- icu.orig/source/tools/gennorm2/gennorm2.8.in	1970-01-01 01:00:00.000000000 +0100
92ecab
+++ icu/source/tools/gennorm2/gennorm2.8.in	2013-02-25 16:43:28.297062638 +0100
92ecab
@@ -0,0 +1,71 @@
92ecab
+.\" Hey, Emacs! This is -*-nroff-*- you know...
92ecab
+.\"
92ecab
+.\" gennorm2.8: manual page for the gennorm2 utility
92ecab
+.\"
92ecab
+.\" Copyright (C) 2005-2006 International Business Machines Corporation and others
92ecab
+.\"
92ecab
+.TH GENNORM2 8 "15 March 2010" "ICU MANPAGE" "ICU @VERSION@ Manual"
92ecab
+.SH NAME
92ecab
+.B gennorm2
92ecab
+\- Builds binary data file with Unicode normalization data.
92ecab
+.SH SYNOPSIS
92ecab
+.B gennorm2
92ecab
+[
92ecab
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
92ecab
+]
92ecab
+[
92ecab
+.BR "\-V\fP, \fB\-\-version"
92ecab
+]
92ecab
+[
92ecab
+.BR "\-c\fP, \fB\-\-copyright"
92ecab
+]
92ecab
+[
92ecab
+.BR "\-v\fP, \fB\-\-verbose"
92ecab
+]
92ecab
+[
92ecab
+.BI "\-u\fP, \fB\-\-unicode" " unicode\-version\-number"
92ecab
+]
92ecab
+[
92ecab
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
92ecab
+]
92ecab
+[
92ecab
+.BI "\-o\fP, \fB\-\-output" " output\-filename"
92ecab
+]
92ecab
+.BI "\fB\-\-fast"
92ecab
+.SH DESCRIPTION
92ecab
+.B gennorm2
92ecab
+reads text files that define Unicode normalization,
92ecab
+them, and builds a binary data file.
92ecab
+.SH OPTIONS
92ecab
+.TP
92ecab
+.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
92ecab
+Print help about usage and exit.
92ecab
+.TP
92ecab
+.BR "\-V\fP, \fB\-\-version"
92ecab
+Print the version of
92ecab
+.B gennorm2
92ecab
+and exit.
92ecab
+.TP
92ecab
+.BR "\-c\fP, \fB\-\-copyright"
92ecab
+Include a copyright notice.
92ecab
+.TP
92ecab
+.BR "\-v\fP, \fB\-\-verbose"
92ecab
+Display extra informative messages during execution.
92ecab
+.TP
92ecab
+.BR "\-u\fP, \fB\-\-unicode"
92ecab
+Specify Unicode version number, such as 5.2.0.
92ecab
+.TP
92ecab
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
92ecab
+Specify the input directory.
92ecab
+.TP
92ecab
+.BI "\-s\fP, \fB\-\-sourcedir" " source\-directory"
92ecab
+Set the name of the output file.
92ecab
+.TP
92ecab
+.BI "\fB\-\-fast"
92ecab
+optimize the .nrm file for fast normalization,
92ecab
+which might increase its size  (Writes fully decomposed
92ecab
+regular mappings instead of delta mappings.
92ecab
+You should measure the runtime speed to make sure that
92ecab
+this is a good trade-off.)
92ecab
+.SH COPYRIGHT
92ecab
+Copyright (C) 2009-2010 International Business Machines Corporation and others
92ecab
diff -r -u -N icu.orig/source/tools/gennorm2/Makefile.in icu/source/tools/gennorm2/Makefile.in
92ecab
--- icu.orig/source/tools/gennorm2/Makefile.in	2013-01-11 01:23:32.000000000 +0100
92ecab
+++ icu/source/tools/gennorm2/Makefile.in	2013-02-25 16:43:28.296062632 +0100
92ecab
@@ -16,8 +16,13 @@
92ecab
 
92ecab
 TARGET_STUB_NAME = gennorm2
92ecab
 
92ecab
+SECTION = 8
92ecab
+
92ecab
+MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
92ecab
+
92ecab
+
92ecab
 ## Extra files to remove for 'make clean'
92ecab
-CLEANFILES = *~ $(DEPS)
92ecab
+CLEANFILES = *~ $(DEPS) $(MAN_FILES)
92ecab
 
92ecab
 ## Target information
92ecab
 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
92ecab
@@ -44,12 +49,16 @@
92ecab
 dist: dist-local
92ecab
 check: all check-local
92ecab
 
92ecab
-all-local: $(TARGET)
92ecab
+all-local: $(TARGET) $(MAN_FILES)
92ecab
 
92ecab
-install-local: all-local
92ecab
+install-local: all-local install-man
92ecab
 	$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
92ecab
 	$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
92ecab
 
92ecab
+install-man: $(MAN_FILES)
92ecab
+	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
92ecab
+	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
92ecab
+
92ecab
 dist-local:
92ecab
 
92ecab
 clean-local:
92ecab
@@ -70,6 +79,11 @@
92ecab
 	$(POST_BUILD_STEP)
92ecab
 
92ecab
 
92ecab
+%.$(SECTION): $(srcdir)/%.$(SECTION).in
92ecab
+	cd $(top_builddir) \
92ecab
+	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
92ecab
+
92ecab
+
92ecab
 ifeq (,$(MAKECMDGOALS))
92ecab
 -include $(DEPS)
92ecab
 else