2 |
- |
1 |
/* Print the version number. */
|
|
|
2 |
|
|
|
3 |
/* $Id: version.c,v 1.5 1997/05/21 18:29:20 eggert Exp $ */
|
|
|
4 |
|
|
|
5 |
#define XTERN extern
|
|
|
6 |
#include <common.h>
|
|
|
7 |
#undef XTERN
|
|
|
8 |
#define XTERN
|
|
|
9 |
#include <patchlevel.h>
|
|
|
10 |
#include <version.h>
|
|
|
11 |
|
|
|
12 |
static char const copyright_string[] = "\
|
|
|
13 |
Copyright 1988 Larry Wall\n\
|
|
|
14 |
Copyright 1997 Free Software Foundation, Inc.";
|
|
|
15 |
|
|
|
16 |
static char const free_software_msgid[] = "\
|
|
|
17 |
This program comes with NO WARRANTY, to the extent permitted by law.\n\
|
|
|
18 |
You may redistribute copies of this program\n\
|
|
|
19 |
under the terms of the GNU General Public License.\n\
|
|
|
20 |
For more information about these matters, see the file named COPYING.";
|
|
|
21 |
|
|
|
22 |
static char const authorship_msgid[] = "\
|
|
|
23 |
written by Larry Wall with lots o' patches by Paul Eggert";
|
|
|
24 |
|
|
|
25 |
void
|
|
|
26 |
version()
|
|
|
27 |
{
|
|
|
28 |
printf ("%s %s\n%s\n\n%s\n\n%s\n", program_name, PATCH_VERSION,
|
|
|
29 |
copyright_string, free_software_msgid, authorship_msgid);
|
|
|
30 |
}
|