diff --git a/icu4c/debian/rules b/icu4c/debian/rules index 12ac6c2074f..0dc3f83bb3e 100755 --- a/icu4c/debian/rules +++ b/icu4c/debian/rules @@ -190,8 +190,7 @@ binary-arch: build install dh_installcron dh_installmanpages -picu dh_installinfo - dh_undocumented -picu genccode.8 gennorm.8 \ - genprops.8 gentz.8 pkgdata.8 + dh_undocumented -picu gennorm.8 genprops.8 gentz.8 pkgdata.8 dh_installchangelogs dh_link dh_strip diff --git a/icu4c/source/tools/genccode/Makefile.in b/icu4c/source/tools/genccode/Makefile.in index 8102e6ae847..2538535bdd3 100644 --- a/icu4c/source/tools/genccode/Makefile.in +++ b/icu4c/source/tools/genccode/Makefile.in @@ -17,6 +17,14 @@ include @platform_make_fragment@ ## Build directory information subdir = tools/genccode +## + +SECTION = 8 + +MANX_FILES = $(TARGET).$(SECTION) + +ALL_MAN_FILES = $(MANX_FILES) + ## Extra files to remove for 'make clean' CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) @@ -41,7 +49,7 @@ DEPS = $(OBJECTS:.o=.d) ## List of phony targets .PHONY : all all-local install install-local clean clean-local \ distclean distclean-local dist dist-local check \ -check-local +check-local install-man install-manx ## Clear suffix list .SUFFIXES : @@ -54,12 +62,22 @@ distclean : distclean-local dist: dist-local check: all check-local -all-local: $(TARGET) $(RES_FILES) $(TRANSLIT_RES) $(TEST_FILES) +all-local: $(TARGET) $(RES_FILES) $(TRANSLIT_RES) $(TEST_FILES) $(ALL_MAN_FILES) -install-local: all-local +install-local: all-local install-man $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET) +# man page +install-man: install-manx +install-manx: $(MANX_FILES) + $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) + $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) + +%.$(SECTION): $(srcdir)/%.$(SECTION).in + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + dist-local: clean-local: diff --git a/icu4c/source/tools/genccode/genccode.8.in b/icu4c/source/tools/genccode/genccode.8.in new file mode 100644 index 00000000000..cdb2d85e174 --- /dev/null +++ b/icu4c/source/tools/genccode/genccode.8.in @@ -0,0 +1,51 @@ +.\" Hey, Emacs! This is -*-nroff-*- you know... +.\" +.\" genccode.8: manual page for the gennames utility +.\" +.\" Copyright (C) 2000 IBM, Inc. and others. +.\" +.TH GENCCODE 8 "19 November 2001" "ICU MANPAGE" "ICU @VERSION@ Manual" +.SH NAME +.B genccode +\- generate C code from an ICU data file +.SH SYNOPSIS +.B genccode +[ +.BR "\-h\fP, \fB\-?\fP, \fB\-\-help" +] +[ +.BI "\-d\fP, \fB\-\-destdir" " destination" +] +[ +.IR filename " .\|.\|." +] +.SH DESCRIPTION +.B genccode +reads each of the supplied +.I filename +and writes out a C file containing a compilable definition of the data in +the data file. +The C file name is made by taking the base name of the data +.IR filename , +replacing dots by underscores, and adding a +.I .c +file extension. +.PP +If +.B genccode +is called with no +.I filename +it terminates gracefully. +.SH OPTIONS +.TP +.BR \-h\fP, \fB\-?\fP, \fB\-\-help +Print help about usage and exit. +.TP +.BI "\-d\fP, \fB\-\-destdir" " destination" +Set the destination directory to +.IR destination . +The default destination directory is the current directory. +.SH VERSION +@VERSION@ +.SH COPYRIGHT +Copyright (C) 2000-2001 IBM, Inc. and others. diff --git a/icu4c/source/tools/gennames/Makefile.in b/icu4c/source/tools/gennames/Makefile.in index f4caf3d310c..b8677ff7a65 100644 --- a/icu4c/source/tools/gennames/Makefile.in +++ b/icu4c/source/tools/gennames/Makefile.in @@ -56,7 +56,7 @@ DEPS = $(OBJECTS:.o=.d) ## List of phony targets .PHONY : all all-local install install-local clean clean-local\ distclean distclean-local dist dist-local check \ -check-local build-data install-man +check-local build-data install-man install-manx ## Clear suffix list .SUFFIXES : @@ -71,7 +71,7 @@ check: all check-local all-local: $(TARGET) $(ALL_MAN_FILES) -install-local: all-local build-data +install-local: all-local build-data install-man $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET) diff --git a/icu4c/source/tools/gennames/gennames.8.in b/icu4c/source/tools/gennames/gennames.8.in index 477073e6e00..111de364feb 100644 --- a/icu4c/source/tools/gennames/gennames.8.in +++ b/icu4c/source/tools/gennames/gennames.8.in @@ -4,7 +4,7 @@ .\" .\" Copyright (C) 2000 IBM, Inc. and others. .\" -.TH GENRB 8 "13 November 2001" "ICU MANPAGE" "ICU @VERSION@ Manual" +.TH GENNAMES 8 "13 November 2001" "ICU MANPAGE" "ICU @VERSION@ Manual" .SH NAME .B gennames \- compile Unicode code points names into a data file @@ -35,7 +35,7 @@ .IR filename ] .SH DESCRIPTION -.B genrb +.B gennames reads the Unicode character database from .I filename and produce the file