aboutsummaryrefslogtreecommitdiffstats
path: root/troff/troff.d/font/devhtml/makefont.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-12-25 17:53:10 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-12-25 17:53:10 +0000
commit80647123fe63c15caa93687028a45f9efee5b669 (patch)
tree6fe6df04e4b2cd506323ad2994b9527dd1ed7193 /troff/troff.d/font/devhtml/makefont.c
parent6db6db4b7f38f7760b90ec861a39b5ccb9df5ba9 (diff)
downloadsrc-vendor/heirloom-doctools.tar.gz
src-vendor/heirloom-doctools.zip
Notes
Notes: svn path=/vendor/heirloom-doctools/dist/; revision=310550 svn path=/vendor/heirloom-doctools/20161106/; revision=310551; tag=vendor/heirloom-doctools/20161106
Diffstat (limited to 'troff/troff.d/font/devhtml/makefont.c')
-rw-r--r--troff/troff.d/font/devhtml/makefont.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/troff/troff.d/font/devhtml/makefont.c b/troff/troff.d/font/devhtml/makefont.c
index a9b4da08d591..d0587d98dae3 100644
--- a/troff/troff.d/font/devhtml/makefont.c
+++ b/troff/troff.d/font/devhtml/makefont.c
@@ -49,8 +49,10 @@ main(int argc, char **argv) {
char *b, *b0;
ssize_t s;
progname = argv[0];
- if (argc != 2) return usage();
+ if (argc < 2 || argc > 3) return usage();
fontname = argv[1];
+ if (argc == 3)
+ charfile = argv[2];
s = read_file(&b0);
b = b0;
if (!(i = find_font(&b, &s))) {
@@ -189,7 +191,7 @@ next_line(char **b, ssize_t *s) {
static int
usage(void) {
fprintf(stderr,
-"Usage: ./%s <font_name> >> <font_name>\n"
+"Usage: ./%s <font_name> [charsetfile] >> <font_name>\n"
, progname);
return EXIT_FAILURE;
}