Imported Upstream version 1.9.8
[platform/upstream/doxygen.git] / deps / libmscgen / mscgen_usage.c
1 /***************************************************************************
2  *
3  * $Id: main.c 75 2009-07-26 14:45:59Z Michael.McTernan $
4  *
5  * This file is part of mscgen, a message sequence chart renderer.
6  * Copyright (C) 2010 Michael C McTernan, Michael.McTernan.2001@cs.bris.ac.uk
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21  **************************************************************************/
22
23 /***************************************************************************
24  * Include Files
25  ***************************************************************************/
26
27 #include "mscgen_config.h"
28 #include <stdio.h>
29 #include "mscgen_usage.h"
30
31 /***************************************************************************
32  * Types
33  ***************************************************************************/
34
35 /***************************************************************************
36  * Local Variables.
37  ***************************************************************************/
38
39 /***************************************************************************
40  * Functions
41  ***************************************************************************/
42
43 /** Print program usage and return.
44  */
45 void Usage(void)
46 {
47     printf(
48 "Usage: mscgen -T <type> [-o <file>] [-i] <infile>\n"
49 "       mscgen -l\n"
50 "\n"
51 "Where:\n"
52 " -T <type>   Specifies the output file type, which maybe one of 'png', 'eps',\n"
53 "             'svg' or 'ismap'\n"
54 " -i <infile> The file from which to read input.  If omitted or specified as\n"
55 "              '-', input will be read from stdin.  The '-i' flag maybe\n"
56 "              omitted if <infile> is specified as the last option on the\n"
57 "              command line.\n"
58 " -o <file>   Write output to the named file.  This option must be specified if \n"
59 "              input is taken from stdin, otherwise the output filename\n"
60 "              defaults to <infile>.<type>.  This may also be specified as '-'\n"
61 "              to write output directly to stdout.\n"
62 #ifdef USE_FREETYPE
63 " -F <font>   Use specified font for PNG output.  This must be a font specifier\n"
64 "              compatible with fontconfig (see 'fc-list'), and overrides the\n"
65 "              MSCGEN_FONT environment variable if also set.\n"
66 #endif
67 " -p          Print parsed msc output (for parser debug).\n"
68 " -l          Display program licence and exit.\n"
69 "\n"
70 "Mscgen version %s, Copyright (C) 2010 Michael C McTernan,\n"
71 "                                        Michael.McTernan.2001@cs.bris.ac.uk\n"
72 "Mscgen comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are\n"
73 "welcome to redistribute it under certain conditions; type `mscgen -l' for\n"
74 "details.\n"
75 "\n"
76 "PNG rendering by libgd, www.libgd.org\n"
77 "\n",
78 PACKAGE_VERSION);
79 }
80
81
82 /** Print program licence and return.
83  */
84 void Licence(void)
85 {
86     printf(
87 "Mscgen, a message sequence chart renderer.\n"
88 "Copyright (C) 2010 Michael C McTernan, Michael.McTernan.2001@cs.bris.ac.uk\n"
89 "\n"
90 "TTPCom Ltd., hereby disclaims all copyright interest in the program `mscgen'\n"
91 "(which renders message sequence charts) written by Michael McTernan.\n"
92 "\n"
93 "Rob Meades of TTPCom Ltd, 1 August 2005\n"
94 "Rob Meades, director of Software\n"
95 "\n"
96 "This program is free software; you can redistribute it and/or modify\n"
97 "it under the terms of the GNU General Public License as published by\n"
98 "the Free Software Foundation; either version 2 of the License, or\n"
99 "(at your option) any later version.\n"
100 "\n"
101 "This program is distributed in the hope that it will be useful,\n"
102 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
103 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
104 "GNU General Public License for more details.\n"
105 "\n"
106 "You should have received a copy of the GNU General Public License\n"
107 "along with this program; if not, write to the Free Software\n"
108 "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA\n");
109 }
110
111 /* END OF FILE */