home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / tex / dvivga9.arc / USAGE.H < prev    next >
Text File  |  1988-08-12  |  3KB  |  96 lines

  1. /* -*-C-*- usage.h */
  2. /*-->usage*/
  3. /**********************************************************************/
  4. /******************************* usage ********************************/
  5. /**********************************************************************/
  6.  
  7. void
  8. usage(fp)        /* print usage message to fp and return */
  9. FILE *fp;
  10. {
  11.     (void)fprintf(fp,"[TeX82 DVI Translator Version %s]",VERSION_NO);
  12.     NEWLINE(fp);
  13.     (void)fprintf(fp,"[%s]",DEVICE_ID);
  14.     NEWLINE(fp);
  15.  
  16.     (void)sprintf(message,
  17.         "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  18. {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-x#{units}} {-y#{units}} dvifile(s)",
  19. g_progname);
  20.  
  21. #if    APPLEIMAGEWRITER
  22.     (void)sprintf(message,
  23.         "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  24. {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-x#{units}} {-y#{units}} \
  25. dvifile(s)",
  26. g_progname);
  27. #endif
  28.  
  29. #if    EPSON
  30.     (void)sprintf(message,
  31.         "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  32. {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-t} {-x#{units}} {-y#{units}} \
  33. {-z} dvifile(s)",
  34. g_progname);
  35. #endif /* EPSON */
  36.  
  37. #if    GOLDENDAWNGL100
  38.     (void)sprintf(message,
  39.         "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  40. {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-x#{units}} {-y#{units}} \
  41. dvifile(s)",
  42. g_progname);
  43. #endif
  44.  
  45. #if    HPLASERJET
  46.     (void)sprintf(message,
  47.         "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  48. {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r#} {-x#{units}} {-y#{units}} \
  49. {-z} dvifile(s)",
  50. g_progname);
  51. #endif /* HPLASERJET */
  52.  
  53. #if    POSTSCRIPT
  54.     (void)sprintf(message,
  55.         "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  56. {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-v} {-x#{units}} {-y#{units}} \
  57. {-z} dvifile(s)",
  58. g_progname);
  59. #endif /* POSTSCRIPT */
  60.  
  61. #if    TOSHIBAP1351
  62.     (void)sprintf(message,
  63.         "Usage: %s {-a} {-b} {-c#} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  64. {-l} {-m#} {-o#:#:#} {-o#:#} {-o#} {-p} {-r} {-x#{units}} {-y#{units}} \
  65. dvifile(s)",
  66. g_progname);
  67. #endif
  68.  
  69.  
  70. #if VGASCREEN
  71.     (void)sprintf(message,
  72.         "Usage: %s {-a} {-b} {-d#} {-eENVNAME=value} {-ffontsubfile} \
  73. {-l} {-m#} {-p} {-x#{units}} {-y#{units}} dvifile",
  74. g_progname);
  75.  
  76. #endif
  77.  
  78.     (void)fprintf(fp,message);
  79.     NEWLINE(fp);
  80.  
  81.  
  82. #if (VGASCREEN)
  83.     (void)fprintf(fp,
  84.         "See the file 'DVIVGA.DOC' for further documentation.");
  85. #else
  86.     (void)fprintf(fp,
  87.     "For documentation on this program, try the operating command(s):");
  88.     NEWLINE(fp);
  89.  
  90.     (void)fprintf(fp,helpcmd);
  91. #endif
  92.  
  93.     NEWLINE(fp);
  94.     NEWLINE(fp);
  95. }
  96.