fix setversionvars command not found problem during promote
This commit is contained in:
		
							
								
								
									
										12
									
								
								buildcore.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								buildcore.sh
									
									
									
									
									
								
							| @@ -113,6 +113,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 | ||||
| @@ -167,12 +173,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 | ||||
|  | ||||
| # Process for making most of the rpms | ||||
|   | ||||
		Reference in New Issue
	
	Block a user