(Bug 87) Automake 1.4 doesn't do man_MAN1 correctly (Bug 88) Fix usage info
on non-long option systems (Tim Mooney)
This commit is contained in:
parent
d4d1e8bc60
commit
86b1243193
|
@ -1,3 +1,7 @@
|
||||||
|
2003-05-04 Keith Packard <keithp@keithp.com
|
||||||
|
|
||||||
|
+ Map glyph names in fonts with adobe custom encoding to unicode
|
||||||
|
|
||||||
2003-04-23 James Henstridge <james@daa.com.au>
|
2003-04-23 James Henstridge <james@daa.com.au>
|
||||||
|
|
||||||
* doc/fontconfig-devel.sgml: close the <para> element.
|
* doc/fontconfig-devel.sgml: close the <para> element.
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
|
|
||||||
INCLUDES=$(FREETYPE_CFLAGS)
|
INCLUDES=$(FREETYPE_CFLAGS)
|
||||||
|
|
||||||
man1_MANS=fc-cache.man
|
man_MANS=fc-cache.1
|
||||||
|
|
||||||
bin_PROGRAMS=fc-cache
|
bin_PROGRAMS=fc-cache
|
||||||
|
|
||||||
EXTRA_DIST=$(man1_MANS)
|
EXTRA_DIST=$(man_MANS)
|
||||||
|
|
||||||
fc_cache_LDADD = ../src/libfontconfig.la
|
fc_cache_LDADD = ../src/libfontconfig.la
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
fc-cache, fonts.cache \- create an index of FreeType font files in a directory
|
fc-cache, fonts.cache \- create an index of FreeType font files in a directory
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B "fc-cache"
|
.B "fc-cache"
|
||||||
.RI [ directory-name
|
.RI [-fsvV?] [--force] [--system-only] [--verbose] [--version] [--help] [ directory-name
|
||||||
\|.\|.\|. ]
|
\|.\|.\|. ]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
If directory arguments are not given,
|
If directory arguments are not given,
|
||||||
|
@ -36,6 +36,12 @@ uses each directory in the current font configuration. Each directory is
|
||||||
scanned for font files readable by FreeType. A cache is created which
|
scanned for font files readable by FreeType. A cache is created which
|
||||||
contains properties of each font and the associated filename. This cache is
|
contains properties of each font and the associated filename. This cache is
|
||||||
used to speed application startup when using the fontconfig library.
|
used to speed application startup when using the fontconfig library.
|
||||||
|
.P
|
||||||
|
Use -f (or --force on systems supporting long arguments) to override the
|
||||||
|
usual timestamp checking and ensure that new cache files are built.
|
||||||
|
.P
|
||||||
|
Use -s (or --system-only on systems supporting long arguments) to restrict
|
||||||
|
the updates to fonts not located in the current users home directory.
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP 15
|
.TP 15
|
||||||
.B fonts.cache
|
.B fonts.cache
|
|
@ -67,16 +67,29 @@ extern int optind, opterr, optopt;
|
||||||
static void
|
static void
|
||||||
usage (char *program)
|
usage (char *program)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "usage: %s [-fvV?] [--force] [--verbose] [--version] [--help] [dirs]\n",
|
#if HAVE_GETOPT_LONG
|
||||||
|
fprintf (stderr, "usage: %s [-fsvV?] [--force] [--system-only] [--verbose] [--version] [--help] [dirs]\n",
|
||||||
program);
|
program);
|
||||||
|
#else
|
||||||
|
fprintf (stderr, "usage: %s [-fsvV?] [dirs]\n",
|
||||||
|
program);
|
||||||
|
#endif
|
||||||
fprintf (stderr, "Build font information caches in [dirs]\n"
|
fprintf (stderr, "Build font information caches in [dirs]\n"
|
||||||
"(all directories in font configuration by default).\n");
|
"(all directories in font configuration by default).\n");
|
||||||
fprintf (stderr, "\n");
|
fprintf (stderr, "\n");
|
||||||
|
#if HAVE_GETOPT_LONG
|
||||||
fprintf (stderr, " -f, --force scan directories with apparently valid caches\n");
|
fprintf (stderr, " -f, --force scan directories with apparently valid caches\n");
|
||||||
fprintf (stderr, " -s, --system-only scan system-wide directories only\n");
|
fprintf (stderr, " -s, --system-only scan system-wide directories only\n");
|
||||||
fprintf (stderr, " -v, --verbose display status information while busy\n");
|
fprintf (stderr, " -v, --verbose display status information while busy\n");
|
||||||
fprintf (stderr, " -V, --version display font config version and exit\n");
|
fprintf (stderr, " -V, --version display font config version and exit\n");
|
||||||
fprintf (stderr, " -?, --help display this help and exit\n");
|
fprintf (stderr, " -?, --help display this help and exit\n");
|
||||||
|
#else
|
||||||
|
fprintf (stderr, " -f (force) scan directories with apparently valid caches\n");
|
||||||
|
fprintf (stderr, " -s (system) scan system-wide directories only\n");
|
||||||
|
fprintf (stderr, " -v (verbose) display status information while busy\n");
|
||||||
|
fprintf (stderr, " -V (version) display font config version and exit\n");
|
||||||
|
fprintf (stderr, " -? (help) display this help and exit\n");
|
||||||
|
#endif
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,9 +229,9 @@ main (int argc, char **argv)
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
#if HAVE_GETOPT_LONG
|
#if HAVE_GETOPT_LONG
|
||||||
while ((c = getopt_long (argc, argv, "fVv?", longopts, NULL)) != -1)
|
while ((c = getopt_long (argc, argv, "fsVv?", longopts, NULL)) != -1)
|
||||||
#else
|
#else
|
||||||
while ((c = getopt (argc, argv, "fVv?")) != -1)
|
while ((c = getopt (argc, argv, "fsVv?")) != -1)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
|
|
||||||
bin_PROGRAMS=fc-list
|
bin_PROGRAMS=fc-list
|
||||||
|
|
||||||
man1_MANS=fc-list.man
|
man_MANS=fc-list.1
|
||||||
|
|
||||||
INCLUDES=$(FREETYPE_CFLAGS)
|
INCLUDES=$(FREETYPE_CFLAGS)
|
||||||
|
|
||||||
EXTRA_DIST=$(man1_MANS)
|
EXTRA_DIST=$(man_MANS)
|
||||||
|
|
||||||
fc_list_LDADD = ../src/libfontconfig.la
|
fc_list_LDADD = ../src/libfontconfig.la
|
||||||
|
|
|
@ -27,10 +27,11 @@
|
||||||
fc-list \- list available fonts
|
fc-list \- list available fonts
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B "fc-list"
|
.B "fc-list"
|
||||||
.RI [ font-pattern ]
|
.RI [-vV?] [--verbose] [--version] [ font-pattern ] { element ... }
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
If font pattern is not given,
|
If font pattern is not given,
|
||||||
.I fc-list
|
.I fc-list
|
||||||
lists all available faces and styles in the current font configuration.
|
lists all available faces and styles in the current font configuration.
|
||||||
|
If elements are provided, list only those elements of each matching pattern.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
fontconfig(3)
|
fontconfig(3)
|
|
@ -61,13 +61,24 @@ extern int optind, opterr, optopt;
|
||||||
|
|
||||||
static void usage (char *program)
|
static void usage (char *program)
|
||||||
{
|
{
|
||||||
|
#if HAVE_GETOPT_LONG
|
||||||
fprintf (stderr, "usage: %s [-vV?] [--verbose] [--version] [--help] [pattern] {element ...} \n",
|
fprintf (stderr, "usage: %s [-vV?] [--verbose] [--version] [--help] [pattern] {element ...} \n",
|
||||||
program);
|
program);
|
||||||
|
#else
|
||||||
|
fprintf (stderr, "usage: %s [-vV?] [pattern] {element ...} \n",
|
||||||
|
program);
|
||||||
|
#endif
|
||||||
fprintf (stderr, "List fonts matching [pattern]\n");
|
fprintf (stderr, "List fonts matching [pattern]\n");
|
||||||
fprintf (stderr, "\n");
|
fprintf (stderr, "\n");
|
||||||
|
#if HAVE_GETOPT_LONG
|
||||||
fprintf (stderr, " -v, --verbose display status information while busy\n");
|
fprintf (stderr, " -v, --verbose display status information while busy\n");
|
||||||
fprintf (stderr, " -V, --version display font config version and exit\n");
|
fprintf (stderr, " -V, --version display font config version and exit\n");
|
||||||
fprintf (stderr, " -?, --help display this help and exit\n");
|
fprintf (stderr, " -?, --help display this help and exit\n");
|
||||||
|
#else
|
||||||
|
fprintf (stderr, " -v (verbose) display status information while busy\n");
|
||||||
|
fprintf (stderr, " -V (version) display font config version and exit\n");
|
||||||
|
fprintf (stderr, " -? (help) display this help and exit\n");
|
||||||
|
#endif
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue