diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/beebe/src/usage.h |
Initial commit
Diffstat (limited to 'dviware/beebe/src/usage.h')
-rw-r--r-- | dviware/beebe/src/usage.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/dviware/beebe/src/usage.h b/dviware/beebe/src/usage.h new file mode 100644 index 0000000000..6a7a2341e5 --- /dev/null +++ b/dviware/beebe/src/usage.h @@ -0,0 +1,80 @@ +/* -*-C-*- usage.h */ +/*-->usage*/ +/**********************************************************************/ +/******************************* usage ********************************/ +/**********************************************************************/ + +void +usage(fp) /* print usage message to fp and return */ +FILE *fp; +{ + (void)fprintf(fp,"[TeX82 DVI Translator Version %s]",VERSION_NO); + NEWLINE(fp); + (void)fprintf(fp,"[%s]",DEVICE_ID); + NEWLINE(fp); + + (void)sprintf(message, + "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \ +{-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-x#{units}} {-y#{units}} dvifile(s)", +g_progname); + +#if APPLEIMAGEWRITER + (void)sprintf(message, + "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \ +{-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-x#{units}} {-y#{units}} \ +dvifile(s)", +g_progname); +#endif + +#if EPSON + (void)sprintf(message, + "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \ +{-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-t} {-x#{units}} {-y#{units}} \ +{-z} dvifile(s)", +g_progname); +#endif /* EPSON */ + +#if GOLDENDAWNGL100 + (void)sprintf(message, + "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \ +{-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-x#{units}} {-y#{units}} \ +dvifile(s)", +g_progname); +#endif + +#if HPLASERJET + (void)sprintf(message, + "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \ +{-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r#} {-x#{units}} {-y#{units}} \ +{-z} dvifile(s)", +g_progname); +#endif /* HPLASERJET */ + +#if POSTSCRIPT + (void)sprintf(message, + "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \ +{-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-v} {-x#{units}} {-y#{units}} \ +{-z} dvifile(s)", +g_progname); +#endif /* POSTSCRIPT */ + +#if TOSHIBAP1351 + (void)sprintf(message, + "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \ +{-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-x#{units}} {-y#{units}} \ +dvifile(s)", +g_progname); +#endif + + (void)fprintf(fp,message); + NEWLINE(fp); + + + (void)fprintf(fp, + "For documentation on this program, try the operating command(s):"); + NEWLINE(fp); + + (void)fprintf(fp,helpcmd); + NEWLINE(fp); + NEWLINE(fp); +} |