18876242 automate bash's micro version number deduction
authorStefan Teleman <stefan.teleman@oracle.com>
Fri, 30 May 2014 22:38:19 -0700
changeset 1925 006fddcfd9b7
parent 1924 72ec8810274b
child 1926 d37b02d5beee
18876242 automate bash's micro version number deduction
components/bash/Makefile
--- a/components/bash/Makefile	Fri May 30 10:34:34 2014 -0700
+++ b/components/bash/Makefile	Fri May 30 22:38:19 2014 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2013, 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).45
+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