ICU-3389 Don't output the static library readme for the data library

X-SVN-Rev: 15249
This commit is contained in:
George Rhoten 2004-05-11 05:17:14 +00:00
parent dad60278cf
commit 27977471ca
4 changed files with 14 additions and 3 deletions

View file

@ -37,7 +37,7 @@ endif
top_builddir_from_tmp = $(patsubst ..%,../..%,$(top_builddir))
CURDIR:=$(CURR_FULL_DIR)
PKGDATA = $(BINDIR)/pkgdata $(PKGDATA_OPTS) -c -s $(CURDIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR)
PKGDATA = $(BINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURDIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR)
# OBJDATADIR must be a short path (with ..'s) to the data.

View file

@ -95,7 +95,8 @@ static UOption options[]={
/*19*/ UOPTION_DEF( "numerictmp", 'N', UOPT_NO_ARG),
/*20*/ UOPTION_DEF( "embed", 'E', UOPT_NO_ARG),
/*21*/ UOPTION_DEF( "libname", 'L', UOPT_REQUIRES_ARG),
/*22*/ UOPTION_DEF( "compat", 'Z', UOPT_NO_ARG)
/*22*/ UOPTION_DEF( "quiet", 'q', UOPT_NO_ARG),
/*23*/ UOPTION_DEF( "compat", 'Z', UOPT_NO_ARG)
};
const char options_help[][320]={
@ -125,6 +126,7 @@ const char options_help[][320]={
"Use short numeric temporary file names such as t1234.c",
"Use Embedded paths (such as 'mypackage_') - for compatibility.",
"Library name to build (if different than package name)",
"Quite mode. (e.g. Do not output a readme file for static libraries)",
"Collation compatibility mode. All paths reduced to basenames, 'x.crs' maps to coll/x.res. This internal-use-only option will be removed in future ICU versions- do not use. "
};
@ -281,6 +283,12 @@ main(int argc, char* argv[]) {
}
if(options[22].doesOccur) {
o.quiet = TRUE;
} else {
o.quiet = FALSE;
}
if(options[23].doesOccur) {
o.compatMode = TRUE;
} else {
o.compatMode = FALSE;

View file

@ -117,6 +117,7 @@ typedef struct UPKGOptions_
UBool clean;
UBool nooutput;
UBool verbose;
UBool quiet;
UBool hadStdin; /* Stdin was a dependency - don't make anything depend on the file list coming in. */
UBool numeric; /* use numeric, short, temporary file names */

View file

@ -126,7 +126,9 @@ void pkg_mode_static(UPKGOptions *o, FileStream *makefile, UErrorCode *status)
o->outFiles = pkg_appendToList(o->outFiles, &tail, uprv_strdup(tmp));
pkg_sttc_writeReadme(o, tmp, status);
if (!o->quiet) {
pkg_sttc_writeReadme(o, tmp, status);
}
if(U_FAILURE(*status)) {
return;
}