summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2011-02-02 05:21:37 +0000
committerlum <lum@cvs.openbsd.org>2011-02-02 05:21:37 +0000
commitd260aa45129bfa62f9bd16f21c5b87f46ce38318 (patch)
tree0b826d7b5222503c3fd6dcda768929921c5d599c /usr.bin/mg
parenteba077122086a85c39904a285dd22a36d05ed0ec (diff)
Move mg(1) tutorial file into a release, instead of languishing in src.
ok nick@ schwarze@ miod@ kjell@
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/Makefile7
-rw-r--r--usr.bin/mg/mg.16
2 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/mg/Makefile b/usr.bin/mg/Makefile
index d90fadeedcf..fb02b129837 100644
--- a/usr.bin/mg/Makefile
+++ b/usr.bin/mg/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.23 2011/01/18 17:35:42 lum Exp $
+# $OpenBSD: Makefile,v 1.24 2011/02/02 05:21:36 lum Exp $
PROG= mg
@@ -26,4 +26,9 @@ SRCS= autoexec.c basic.c buffer.c cinfo.c dir.c display.c \
#
SRCS+= cmode.c dired.c grep.c theo.c
+afterinstall:
+ ${INSTALL} -d ${DESTDIR}${DOCDIR}/mg
+ ${INSTALL} -m ${NONBINMODE} -c ${.CURDIR}/tutorial \
+ ${DESTDIR}${DOCDIR}/mg
+
.include <bsd.prog.mk>
diff --git a/usr.bin/mg/mg.1 b/usr.bin/mg/mg.1
index 098bb774667..c021b1213e9 100644
--- a/usr.bin/mg/mg.1
+++ b/usr.bin/mg/mg.1
@@ -1,7 +1,7 @@
-.\" $OpenBSD: mg.1,v 1.50 2011/01/18 17:37:32 jmc Exp $
+.\" $OpenBSD: mg.1,v 1.51 2011/02/02 05:21:36 lum Exp $
.\" This file is in the public domain.
.\"
-.Dd $Mdocdate: January 18 2011 $
+.Dd $Mdocdate: February 2 2011 $
.Dt MG 1
.Os
.Sh NAME
@@ -831,6 +831,8 @@ auto-execute *.c c-mode
normal startup file
.It Pa ~/.mg-TERM
terminal-specific startup file
+.It Pa /usr/share/mg/tutorial
+concise tutorial
.El
.Sh SEE ALSO
.Xr vi 1