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