Convert amd newvers to using newvers.sh -v.
Rather than the tedious and error-prone grep of sys/conf/newvers.sh, use the new -v arg to dig out the data that's desired. Differential Revision: https://reviews.freebsd.org/D19849
This commit is contained in:
parent
9afea54ac5
commit
5f8363315e
@ -5,7 +5,7 @@
|
||||
#
|
||||
|
||||
if [ -e $1 ]; then
|
||||
eval `LC_ALL=C egrep '^[A-Z]+=' $1 | grep -v COPYRIGHT`
|
||||
eval $(sh $1 -v)
|
||||
OS=`echo ${TYPE} | LC_ALL=C tr 'A-Z' 'a-z'`
|
||||
echo '/* Define name and version of host machine (eg. solaris2.5.1) */'
|
||||
echo "#define HOST_OS \"${OS}${REVISION}\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user