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:
@@ -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
7
configure
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user