summaryrefslogtreecommitdiff
path: root/usr.bin/mg/version.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-02-25 19:08:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-02-25 19:08:53 +0000
commit998d769a0cf8bef7d4ca0d26945c151a23b542ec (patch)
treefe53a083eaa06a2bf7631453e18a161a86ad9d62 /usr.bin/mg/version.c
parentb0226ecd4460819556afd27fd575d64421fd0f68 (diff)
initial import of mg2a
Diffstat (limited to 'usr.bin/mg/version.c')
-rw-r--r--usr.bin/mg/version.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr.bin/mg/version.c b/usr.bin/mg/version.c
new file mode 100644
index 00000000000..0f3a9e7562f
--- /dev/null
+++ b/usr.bin/mg/version.c
@@ -0,0 +1,20 @@
+/*
+ * This file contains the string that get written
+ * out by the emacs-version command.
+ */
+
+#define TRUE 1 /* include "def.h" when things get more complicated */
+
+char version[] = "Mg 2a (formerly MicroGnuEmacs)";
+
+/*
+ * Display the version. All this does
+ * is copy the version string onto the echo line.
+ */
+/*ARGSUSED*/
+showversion(f, n)
+int f, n;
+{
+ ewprintf(version);
+ return TRUE;
+}