summaryrefslogtreecommitdiff
path: root/sys/src/ape/cmd/patch/version.c
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 15:46:40 +0300
commite5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch)
treed8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/ape/cmd/patch/version.c
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/ape/cmd/patch/version.c')
-rwxr-xr-xsys/src/ape/cmd/patch/version.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/src/ape/cmd/patch/version.c b/sys/src/ape/cmd/patch/version.c
new file mode 100755
index 000000000..ea08437b0
--- /dev/null
+++ b/sys/src/ape/cmd/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);
+}