18876242 automate bash's micro version number deduction s11-update
authorStefan Teleman <stefan.teleman@oracle.com>
Wed, 04 Jun 2014 08:03:38 -0700
branchs11-update
changeset 3160 f485b27c5b6c
parent 3159 9c09f5ccd86f
child 3162 d5ec681afe01
18876242 automate bash's micro version number deduction
components/bash/Makefile
--- a/components/bash/Makefile	Mon Jun 02 23:07:45 2014 -0700
+++ b/components/bash/Makefile	Wed Jun 04 08:03:38 2014 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
 #
 include ../../make-rules/shared-macros.mk
 
@@ -36,7 +36,8 @@
 include ../../make-rules/configure.mk
 include ../../make-rules/ips.mk
 
-IPS_COMPONENT_VERSION = $(COMPONENT_VERSION).9
+BASH_PATCHLEVEL=$(shell grep -h "define PATCHLEVEL" $(COMPONENT_DIR)/patches/bash* | nawk '{print $$NF}' | sort -n | tail -1)
+IPS_COMPONENT_VERSION = $(COMPONENT_VERSION).$(BASH_PATCHLEVEL)
 PATCH_LEVEL = 0
 
 PKG_PROTO_DIRS += $(COMPONENT_DIR)/Solaris