mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-03 21:02:36 +00:00 
			
		
		
		
	Add build script for imgutil
This commit is contained in:
		
							
								
								
									
										12
									
								
								imgutil/buildrpm
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								imgutil/buildrpm
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
VERSION=`git describe|cut -d- -f 1`
 | 
			
		||||
NUMCOMMITS=`git describe|cut -d- -f 2`
 | 
			
		||||
if [ "$NUMCOMMITS" != "$VERSION"  ]; then
 | 
			
		||||
    VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3`
 | 
			
		||||
fi
 | 
			
		||||
sed -e "s/#VERSION#/$VERSION/" conlfuent_imgutil.spec.tmpl > confluent_imgutil.spec
 | 
			
		||||
cd ..
 | 
			
		||||
tar Jcvf confluent_imgutil.tar.xz imgutil
 | 
			
		||||
mv confluent_imgutil.tar.xz ~/rpmbuild/SOURCES/
 | 
			
		||||
cd -
 | 
			
		||||
rpmbuild -ba confluent_osdeploy.spec
 | 
			
		||||
		Reference in New Issue
	
	Block a user