2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Fix some silly mistakes in Linux versioning update.

This commit is contained in:
Ted Lemon
1999-07-13 18:32:34 +00:00
parent 3175ee907c
commit 343729b9b1
2 changed files with 11 additions and 7 deletions

View File

@@ -43,12 +43,15 @@ COPTS = $(BINDDEF)
#BINDDEF = -DNSUPDATE
##--nsupdate--
##--majver
# Major version number (if applicable)
##--majver--
MAJORVERSION=MajorVersion
##--majver
##--minver
##--majver--
# Minor version number (if applicable)
##--minver--
MINORVERSION=MinorVersion
##--minver
##--minver--
## Porting::
#

7
configure vendored
View File

@@ -32,8 +32,8 @@ if [ "$sysname" = "" ]; then
fi;;
Linux)
release=`uname -r`
minor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)$/\1/'`
major=`echo $release |sed -e 's/\([0-9][0-9]*\)\.[0-9]*$/\1/'`
minor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'`
major=`echo $release |sed -e 's/\([0-9][0-9]*\)\..*$/\1/'`
case $major in
1) sysname=linux-1 ;;
@@ -95,9 +95,10 @@ if [ "$sysname" = "" ]; then
fi
echo "System Type: $sysname"
if [ x$major != x ] && [ x$minor != x ]; then
majversubst="-e /^##--majver--/,/^##--majver--/s/MajorVersion/$major/"
majversubst="-e /^##--minver--/,/^##--minver--/s/MinorVersion/$minor/"
minversubst="-e /^##--minver--/,/^##--minver--/s/MinorVersion/$minor/"
fi
for foo in . client server relay common; do