mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 14:31:31 +00:00
ICU-601 added manual page for genccode.
X-SVN-Rev: 6990
This commit is contained in:
parent
06c701ce89
commit
5b4d61e4f7
5 changed files with 77 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
51
icu4c/source/tools/genccode/genccode.8.in
Normal file
51
icu4c/source/tools/genccode/genccode.8.in
Normal file
|
@ -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.
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue