made changed in mkrpm for xCAT meta package and xCAT-nbroot package so that they can be build on SLES
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1,8 +1,14 @@ | ||||
| #!/bin/sh | ||||
| if [ -f /etc/redhat-release ] | ||||
| then | ||||
|    pkg="redhat" | ||||
| else | ||||
|    pkg="packages" | ||||
| fi | ||||
| cd `dirname $0` | ||||
| tar --exclude .svn -czvf xcat-nbrootoverlay.tar.gz -C overlay/  . | ||||
| cp *.gz /usr/src/redhat/SOURCES | ||||
| cp xcat-core-nbroot.spec /usr/src/redhat/SPECS | ||||
| rm xcat-nbrootoverlay.tar.gz | ||||
| rpmbuild -ba /usr/src/redhat/SPECS/xcat-core-nbroot.spec --target $1 | ||||
| mv -f *.gz /usr/src/$pkg/SOURCES | ||||
| cp xcat-core-nbroot.spec /usr/src/$pkg/SOURCES | ||||
| rpmbuild -ba xcat-core-nbroot.spec --target $1 | ||||
| cd - | ||||
|  | ||||
|   | ||||
							
								
								
									
										12
									
								
								xCAT/mkrpm
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								xCAT/mkrpm
									
									
									
									
									
								
							| @@ -1,8 +1,16 @@ | ||||
| #!/bin/sh | ||||
| if [ -f /etc/redhat-release ] | ||||
| then | ||||
|    pkg="redhat" | ||||
| else | ||||
|    pkg="packages" | ||||
| fi | ||||
| cd `dirname $0` | ||||
| tar --exclude .svn -czvf postscripts.tar.gz  postscripts LICENSE.html | ||||
| tar --exclude .svn -czvf templates.tar.gz templates | ||||
| mv -f *.gz /usr/src/redhat/SOURCES | ||||
| cp xcat.conf /usr/src/redhat/SOURCES | ||||
| mv -f *.gz /usr/src/$pkg/SOURCES | ||||
| cp xcat.conf /usr/src/$pkg/SOURCES | ||||
| rm /usr/src/$pkg/RPMS/noarch/xCAT-2.0*rpm | ||||
| rpmbuild -ba xCAT.spec  | ||||
| cd - | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user