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:
linggao 2007-12-12 15:24:27 +00:00
parent 2b408251b6
commit fc18d6ad7d
2 changed files with 20 additions and 6 deletions

View File

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

View File

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