summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-29 17:33:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-29 17:33:54 +0000
commit95ac8fad2150d87d684b21d74ed17e24490e57e7 (patch)
tree80e787ea806428cc018bbcfcfe9a97db48b24133
parent376dc738192f94d2fab5c44c70a1d6de5dfb3474 (diff)
permit the input file to contain " if needed; millert ok
-rw-r--r--distrib/special/more/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/special/more/Makefile b/distrib/special/more/Makefile
index cb2942e6d0c..cdaedb57f67 100644
--- a/distrib/special/more/Makefile
+++ b/distrib/special/more/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2003/05/28 23:17:23 millert Exp $
+# $OpenBSD: Makefile,v 1.8 2003/05/29 17:33:53 deraadt Exp $
PROG= more
MAN=
@@ -11,7 +11,7 @@ beforedepend: morehelp.h
morehelp.h: ${.CURDIR}/more.help
echo -n 'const char *more_help = "' > morehelp.h
- cat ${.CURDIR}/more.help >> morehelp.h
+ sed -e 's/[\\"]/\\&/g' -e 's/$$/\\n\\/' ${.CURDIR}/more.help >> morehelp.h
echo '";' >> morehelp.h
more.o: morehelp.h