mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348176
|
@ -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…
Reference in a new issue