Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/amd/include/newvers.sh
# $NetBSD: mkconf,v 1.1.1.1 1997/07/24 21:20:12 christos Exp $ | # $NetBSD: mkconf,v 1.1.1.1 1997/07/24 21:20:12 christos Exp $ | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# mkconf | # mkconf | ||||
# Generate local configuration parameters for amd | # Generate local configuration parameters for amd | ||||
# | # | ||||
if [ -e $1 ]; then | if [ -e $1 ]; then | ||||
eval `LC_ALL=C egrep '^[A-Z]+=' $1 | grep -v COPYRIGHT` | export VARS_ONLY=t | ||||
. $1 | |||||
OS=`echo ${TYPE} | LC_ALL=C tr 'A-Z' 'a-z'` | 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 name and version of host machine (eg. solaris2.5.1) */' | ||||
echo "#define HOST_OS \"${OS}${REVISION}\"" | echo "#define HOST_OS \"${OS}${REVISION}\"" | ||||
echo '/* Define only name of host machine OS (eg. solaris2) */' | echo '/* Define only name of host machine OS (eg. solaris2) */' | ||||
echo "#define HOST_OS_NAME \"${OS}${REVISION}\"" \ | echo "#define HOST_OS_NAME \"${OS}${REVISION}\"" \ | ||||
| sed -e 's/\.[-._0-9]*//' | | sed -e 's/\.[-._0-9]*//' | ||||
echo '/* Define only version of host machine (eg. 2.5.1) */' | echo '/* Define only version of host machine (eg. 2.5.1) */' | ||||
echo "#define HOST_OS_VERSION \"${REVISION}\"" | echo "#define HOST_OS_VERSION \"${REVISION}\"" | ||||
Show All 18 Lines |