home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / DVI_MGR / dvimgr_s.lzh / dvimgr / usage.h < prev    next >
Text File  |  1993-08-06  |  2KB  |  81 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.     (void)fprintf(fp,message);
  70.     NEWLINE(fp);
  71.  
  72.  
  73.     (void)fprintf(fp,
  74.     "For documentation on this program, try the operating command(s):");
  75.     NEWLINE(fp);
  76.  
  77.     (void)fprintf(fp,helpcmd);
  78.     NEWLINE(fp);
  79.     NEWLINE(fp);
  80. }
  81.