summaryrefslogtreecommitdiff
path: root/sys/conf
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-08-04 16:13:01 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-08-04 16:13:01 +0000
commit671efad95c176e9943242c7042ba24ac37fe915f (patch)
tree3e9a7912a3a40ef7dc6e3c588b973d522378ae5c /sys/conf
parentdb378bbf96f01f94fecbe7ff4908ef99dbbd2a8d (diff)
Rewritten to use cat(1) instead of echo(1), in particular to be able to
use `\n' instead of a literal newline (good practice); wd@ics.nara-wu.ac.jp
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/newvers.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 405a9bd2d50..8ff7a262f29 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: newvers.sh,v 1.25 2000/05/15 20:57:34 deraadt Exp $
+# $OpenBSD: newvers.sh,v 1.26 2000/08/04 16:13:00 aaron Exp $
# $NetBSD: newvers.sh,v 1.17.2.1 1995/10/12 05:17:11 jtc Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
@@ -64,13 +64,13 @@ id=`basename ${d}`
ost="OpenBSD"
osr="2.7"
-echo "char ostype[] = \"${ost}\";" > vers.c
-echo "char osrelease[] = \"${osr}\";" >> vers.c
-echo "char osversion[] = \"${id}#${v}\";" >> vers.c
-echo "char sccs[8] = { ' ', ' ', ' ', ' ', '@', '(', '#', ')' };" >> vers.c
-echo \
- "char version[] = \
- \"${ost} ${osr}-current (${id}) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" \
- >> vers.c
+cat >vers.c <<eof
+char ostype[] = "${ost}";
+char osrelease[] = "${osr}";
+char osversion[] = "${id}#${v}";
+char sccs[8] = { ' ', ' ', ' ', ' ', '@', '(', '#', ')' };
+char version[] =
+ "${ost} ${osr}-current (${id}) #${v}: ${t}\n ${u}@${h}:${d}\n";
+eof
-echo `expr ${v} + 1` > version
+expr ${v} + 1 > version