fix setversionvars command not found problem during promote

This commit is contained in:
Bruce Potter 2013-10-09 19:54:10 -04:00
parent 75259db4ef
commit 61f8b6a75d

View File

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