diff options
author | peter <peter@FreeBSD.org> | 1999-06-29 21:06:16 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-06-29 21:06:16 +0000 |
commit | b911e1234cfc8c0c6ed9e56aa95a1fd116673727 (patch) | |
tree | 3b60dd360ddd8ed77bc29a2035c935a7aee7445a /sys/boot/alpha | |
parent | 44e9ba14adfa3ed4826faaa7dd9f439cfd234c4e (diff) | |
download | FreeBSD-src-b911e1234cfc8c0c6ed9e56aa95a1fd116673727.zip FreeBSD-src-b911e1234cfc8c0c6ed9e56aa95a1fd116673727.tar.gz |
Don't use head/tail - they don't exist in a 'make world' environment.
(Why do we have three copies of this script anyway?)
Diffstat (limited to 'sys/boot/alpha')
-rw-r--r-- | sys/boot/alpha/boot2/newvers.sh | 3 | ||||
-rw-r--r-- | sys/boot/alpha/netboot/newvers.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/alpha/boot2/newvers.sh b/sys/boot/alpha/boot2/newvers.sh index 978c164..2a78202 100644 --- a/sys/boot/alpha/boot2/newvers.sh +++ b/sys/boot/alpha/boot2/newvers.sh @@ -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 diff --git a/sys/boot/alpha/netboot/newvers.sh b/sys/boot/alpha/netboot/newvers.sh index 88cc010..42a459f 100644 --- a/sys/boot/alpha/netboot/newvers.sh +++ b/sys/boot/alpha/netboot/newvers.sh @@ -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 |