b947a175a2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
29 lines
727 B
Bash
Executable File
29 lines
727 B
Bash
Executable File
#!/bin/ksh
|
|
|
|
OSNAME=$(uname)
|
|
|
|
if [ "$OSNAME" = "AIX" ]
|
|
then
|
|
tar -cvf xCAT-server-2.0.tar xCAT-server-2.0
|
|
gzip xCAT-server-2.0.tar
|
|
cp xCAT-server-2.0.tar.gz /opt/freeware/src/packages/SOURCES
|
|
cd ./xCAT-server-2.0
|
|
rm /opt/freeware/src/packages/RPMS/ppc/xCAT-server-2.0*rpm
|
|
rpm -ba xCAT-server.spec
|
|
#rpm -Uvh /opt/freeware/src/packages/RPMS/ppc/xCAT-server-2.0*rpm
|
|
|
|
else
|
|
|
|
if [ -f /etc/redhat-release ]
|
|
then
|
|
pkg="redhat"
|
|
else
|
|
pkg="packages"
|
|
fi
|
|
|
|
tar --exclude .svn -czvf xCAT-server-2.0.tar.gz xCAT-server-2.0;
|
|
rm /usr/src/$pkg/RPMS/noarch/xCAT-server-2.0*rpm
|
|
rpmbuild -ta xCAT-server-2.0.tar.gz ;
|
|
#rpm -Uvh /usr/src/$pkg/RPMS/noarch/xCAT-server-2.0*rpm
|
|
fi
|