> Date: Sun, 6 May 2012 23:24:50 +0500
> From: Mark Lumsden <[email protected]>
>
> Just make tutorial file neater on installation. ok?
Ugh, using perl to install the binary feels very worng.
Why not simply remove that line from the source?
It isn't even an $OpenBSD$ tag!
> Index: Makefile
> ===================================================================
> RCS file: /cvs/src/usr.bin/mg/Makefile,v
> retrieving revision 1.25
> diff -u -p -r1.25 Makefile
> --- Makefile 28 Nov 2011 04:41:39 -0000 1.25
> +++ Makefile 6 May 2012 18:07:00 -0000
> @@ -28,7 +28,7 @@ SRCS+= cmode.c dired.c grep.c tags.c the
>
> afterinstall:
> ${INSTALL} -d ${DESTDIR}${DOCDIR}/mg
> - ${INSTALL} -m ${NONBINMODE} -c ${.CURDIR}/tutorial \
> - ${DESTDIR}${DOCDIR}/mg
> + perl -p -e '$$_ = "" if ($$. <= 2);' ${.CURDIR}/tutorial > \
> + ${DESTDIR}${DOCDIR}/mg/tutorial
>
> .include <bsd.prog.mk>