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