Blame SOURCES/sapconf-add-infomation-about-sapconf-version.patch

e4ef47
From 7726f121d2693025ae46f3047d7734c0d03942ad Mon Sep 17 00:00:00 2001
e4ef47
From: Jan Grulich <jgrulich@redhat.com>
e4ef47
Date: Tue, 3 Feb 2015 11:42:31 +0100
e4ef47
Subject: [PATCH 2/6] Add infomation about sapconf version BUG:1174321
e4ef47
e4ef47
---
e4ef47
 sapconf | 7 ++++++-
e4ef47
 1 file changed, 6 insertions(+), 1 deletion(-)
e4ef47
e4ef47
diff --git a/sapconf b/sapconf
e4ef47
index c7492be..7a89392 100644
e4ef47
--- a/sapconf
e4ef47
+++ b/sapconf
e4ef47
@@ -37,7 +37,12 @@
e4ef47
 # GLOBAL Variables
e4ef47
 #
e4ef47
 
e4ef47
+SAPCONF_PACKAGE=`rpm -q sapconf`
e4ef47
+
e4ef47
 export SCRIPTNAME=sapconf
e4ef47
+export SAPCONF_MAJOR_VERSION=$(echo $SAPCONF_PACKAGE | cut -d'-' -f2 | cut -d'.' -f1)
e4ef47
+export SAPCONF_MINOR_VERSION=$(echo $SAPCONF_PACKAGE | cut -d'-' -f2 | cut -d'.' -f2)
e4ef47
+export SAPCONF_BUILD_VERSION=$(echo $SAPCONF_PACKAGE | cut -d'-' -f3 | cut -d'.' -f1)
e4ef47
 export LOGDIR=/var/log/sap
e4ef47
 export LOGFILE=${LOGDIR}/${SCRIPTNAME}-$(date +"%Y%m%d%H%M").log
e4ef47
 
e4ef47
@@ -922,7 +922,7 @@ if [ $1 ]; then
e4ef47
      usage
e4ef47
 fi
e4ef47
 
e4ef47
-out "######           ${SCRIPTNAME} by Red Hat           ######"
e4ef47
+out "######        ${SCRIPTNAME}-${SAPCONF_MAJOR_VERSION}.${SAPCONF_MINOR_VERSION}-${SAPCONF_BUILD_VERSION}  by Red Hat       ######"
e4ef47
 if [ $CHECK_ONLY == 0 ]; then
e4ef47
         out "###### Preparing System for SAP Installation  ######"
e4ef47
 else
e4ef47
-- 
e4ef47
2.1.0
e4ef47