From: Todd C. Miller Date: Wed, 30 Mar 2011 16:28:10 +0000 (-0400) Subject: Strip off the beta or release candidate version when building AIX X-Git-Tag: SUDO_1_7_6~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84eaa46aed5087426b5564e3dd317a93ed7653a3;p=sudo Strip off the beta or release candidate version when building AIX packages. --HG-- branch : 1.7 --- diff --git a/sudo.pp b/sudo.pp index 51c51584a..5541488f9 100644 --- a/sudo.pp +++ b/sudo.pp @@ -19,7 +19,7 @@ still allow people to get their work done." summary="Configurable super-user privileges" # Convert to 4 part version for AIX, including patch level - pp_aix_version=`echo $version|sed -e 's/\([0-9]*\.[0-9]*\.[0-9]*\)$/\1.0/' -e 's/[^0-9]*\([0-9]*\)$/.\1/'` + pp_aix_version=`echo $version|sed -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)p\([0-9]*\)$/\1.\2/' -e 's/^\([0-9]*\.[0-9]*\.[0-9]*\)[^0-9\.].*$/\1.0/'` %endif %if [kit]