]> granicus.if.org Git - sudo/commitdiff
Strip off the beta or release candidate version when building AIX
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 30 Mar 2011 16:28:10 +0000 (12:28 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 30 Mar 2011 16:28:10 +0000 (12:28 -0400)
packages.

--HG--
branch : 1.7

sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 51c51584a2c3fcb9449b91f775e96cf272cccf1b..5541488f97bcce741b99685e65a97e9048661046 100644 (file)
--- 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]