fc18d6ad7d
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
15 lines
302 B
Bash
Executable File
15 lines
302 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 xcat-nbrootoverlay.tar.gz -C overlay/ .
|
|
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 -
|
|
|