mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
Do without head and tail: they're pretty unnecessary here anyway.
This commit is contained in:
parent
36e85d353d
commit
7870a52598
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40244
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user