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