From: Arran Cudbard-Bell Date: Thu, 21 May 2015 23:14:34 +0000 (-0400) Subject: Strip trailing - X-Git-Tag: release_3_0_9~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bdee73c4e152f0f909604090d00c04caab28f4f;p=thirdparty%2Ffreeradius-server.git Strip trailing - --- diff --git a/configure.ac b/configure.ac index 459315af911..8723bf4d9ab 100644 --- a/configure.ac +++ b/configure.ac @@ -33,10 +33,9 @@ dnl # dnl # Custom hackery to discover version at configure time dnl # dnl ############################################################# - -RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'` -RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[[^\.]]*\.//' | sed 's/\..*$//'` -RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[[\.-]].*$//'` +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" \