summaryrefslogtreecommitdiff
path: root/src/version.c
blob: 2a00bf6809cfce1086aea34ca24acdb7c5e7df6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Print the version number.  */

#define XTERN extern
#include <common.h>
#undef XTERN
#define XTERN
#include <version.h>

static char const copyright_string[] = "\
Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc.\n\
Copyright (C) 1988 Larry Wall";

static char const free_software_msgid[] = "\
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\n\
This is free software: you are free to change and redistribute it.\n\
There is NO WARRANTY, to the extent permitted by law.";

static char const authorship_msgid[] = "\
Written by Larry Wall and Paul Eggert";

void
version (void)
{
  printf ("%s %s\n%s\n\n%s\n\n%s\n", PACKAGE_NAME, PACKAGE_VERSION,
	  copyright_string, free_software_msgid, authorship_msgid);
}