Do without head and tail: they're pretty unnecessary here anyway.

This commit is contained in:
Robert Nordier 1998-10-12 01:44:15 +00:00
parent 36e85d353d
commit 7870a52598
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40244

View File

@ -36,7 +36,8 @@
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
u=${USER-root} h=`hostname` t=`date`
r=`head -n 6 $1 | tail -n 1 | awk -F: ' { print $1 } '`
#r=`head -n 6 $1 | tail -n 1 | awk -F: ' { print $1 } '`
r=`awk -F: ' /^[0-9]\.[0-9]+:/ { print $1; exit }' $1`
echo "char bootprog_name[] = \"FreeBSD/i386 ${2}\";" > vers.c
echo "char bootprog_rev[] = \"${r}\";" >> vers.c