From: Alan T. DeKok Date: Mon, 30 Nov 2015 19:40:57 +0000 (-0500) Subject: Simplify setting of RADIUSD_VERSION X-Git-Tag: release_3_0_11~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7ede2512664dc59e5159bc389bd1c7c4b54cc29;p=thirdparty%2Ffreeradius-server.git Simplify setting of RADIUSD_VERSION because "awk" on Solaris is broken --- diff --git a/configure b/configure index 7f95ef07122..acdad670773 100755 --- a/configure +++ b/configure @@ -2422,10 +2422,7 @@ RADIUSD_MAJOR_VERSION=`cat VERSION | cut -f1 -d.` RADIUSD_MINOR_VERSION=`cat VERSION | cut -f2 -d.` RADIUSD_INCRM_VERSION=`cat VERSION | cut -f3 -d. | sed 's/[\.-].*$//'` -RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \ --v minor="$RADIUSD_MINOR_VERSION" \ --v incrm="$RADIUSD_INCRM_VERSION" \ -'{ printf "%02i%02i%02i", major, minor, incrm }'` +RADIUSD_VERSION=`printf "%02i%02i%02i" $RADIUSD_MAJOR_VERSION $RADIUSD_MINOR_VERSION $RADIUSD_INCRM_VERSION` RADIUSD_VERSION_STRING=`cat VERSION` diff --git a/configure.ac b/configure.ac index b41cca8b9bf..8ccc861e1d7 100644 --- a/configure.ac +++ b/configure.ac @@ -37,10 +37,7 @@ RADIUSD_MAJOR_VERSION=`cat VERSION | cut -f1 -d.` RADIUSD_MINOR_VERSION=`cat VERSION | cut -f2 -d.` RADIUSD_INCRM_VERSION=`cat VERSION | cut -f3 -d. | sed 's/[[\.-]].*$//'` -RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \ --v minor="$RADIUSD_MINOR_VERSION" \ --v incrm="$RADIUSD_INCRM_VERSION" \ -'{ printf "%02i%02i%02i", major, minor, incrm }'` +RADIUSD_VERSION=`printf "%02i%02i%02i" $RADIUSD_MAJOR_VERSION $RADIUSD_MINOR_VERSION $RADIUSD_INCRM_VERSION` dnl # dnl # Still useful for custom builds