Don't use head/tail - they don't exist in a 'make world' environment.

(Why do we have three copies of this script anyway?)
This commit is contained in:
Peter Wemm 1999-06-29 21:06:16 +00:00
parent db06cf96d5
commit a36ed03d44
2 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,8 @@
LC_TIME=C; export LC_TIME
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/alpha ${2}\";" > vers.c
echo "char bootprog_rev[] = \"${r}\";" >> vers.c

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/alpha ${2}\";" > vers.c
echo "char bootprog_rev[] = \"${r}\";" >> vers.c