3d11002e30
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@289 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
17 lines
360 B
Bash
Executable File
17 lines
360 B
Bash
Executable File
#!/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/$pkg/SOURCES
|
|
cp xcat.conf /usr/src/$pkg/SOURCES
|
|
rm /usr/src/$pkg/RPMS/*/xCAT-2.0*rpm
|
|
rpmbuild -ba xCAT.spec
|
|
cd -
|
|
|