xcat-core/xCAT-nbroot/mkrpm

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 -