--- 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