diff options
author | steve <steve@FreeBSD.org> | 1997-06-29 06:55:02 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1997-06-29 06:55:02 +0000 |
commit | 4b6324645f7223db0870236240d6e99eb4cda757 (patch) | |
tree | b91e93b575aeb975e736e614eaf2a0d0f8ea461a /contrib/patch/version.c | |
download | FreeBSD-src-4b6324645f7223db0870236240d6e99eb4cda757.zip FreeBSD-src-4b6324645f7223db0870236240d6e99eb4cda757.tar.gz |
Import of GNU patch version 2.4.
Diffstat (limited to 'contrib/patch/version.c')
-rw-r--r-- | contrib/patch/version.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/patch/version.c b/contrib/patch/version.c new file mode 100644 index 0000000..ea08437 --- /dev/null +++ b/contrib/patch/version.c @@ -0,0 +1,30 @@ +/* Print the version number. */ + +/* $Id: version.c,v 1.5 1997/05/21 18:29:20 eggert Exp $ */ + +#define XTERN extern +#include <common.h> +#undef XTERN +#define XTERN +#include <patchlevel.h> +#include <version.h> + +static char const copyright_string[] = "\ +Copyright 1988 Larry Wall\n\ +Copyright 1997 Free Software Foundation, Inc."; + +static char const free_software_msgid[] = "\ +This program comes with NO WARRANTY, to the extent permitted by law.\n\ +You may redistribute copies of this program\n\ +under the terms of the GNU General Public License.\n\ +For more information about these matters, see the file named COPYING."; + +static char const authorship_msgid[] = "\ +written by Larry Wall with lots o' patches by Paul Eggert"; + +void +version() +{ + printf ("%s %s\n%s\n\n%s\n\n%s\n", program_name, PATCH_VERSION, + copyright_string, free_software_msgid, authorship_msgid); +} |