From 8f920c6a2c91cdf958729193519084745c11d960 Mon Sep 17 00:00:00 2001 From: Bruce Potter Date: Wed, 9 Oct 2013 19:54:10 -0400 Subject: [PATCH] fix setversionvars command not found problem during promote --- buildcore.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/buildcore.sh b/buildcore.sh index 3d1047edc..ccf9f9ef1 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -141,6 +141,12 @@ else NOARCH=noarch fi +function setversionvars { + VER=`cat Version` + SHORTVER=`cat Version|cut -d. -f 1,2` + SHORTSHORTVER=`cat Version|cut -d. -f 1` +} + if [ "$PROMOTE" != 1 ]; then # very long if statement to not do builds if we are promoting # we are doing a snap build @@ -195,12 +201,6 @@ else # using svn GITUP=$SVNUP fi -function setversionvars { - VER=`cat Version` - SHORTVER=`cat Version|cut -d. -f 1,2` - SHORTSHORTVER=`cat Version|cut -d. -f 1` -} - setversionvars # Function for making the noarch rpms