2008-02-22 21:54:44 +00:00
|
|
|
#!/bin/sh
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
OSNAME=$(uname)
|
|
|
|
|
|
|
|
if [ "$OSNAME" = "AIX" ]
|
|
|
|
then
|
2008-01-17 20:33:12 +00:00
|
|
|
|
|
|
|
echo '.svn' > /tmp/xcat-excludes
|
2008-02-27 19:52:07 +00:00
|
|
|
tar -X /tmp/xcat-excludes -cf /opt/freeware/src/packages/SOURCES/xCAT-server-2.0.tar xCAT-server-2.0
|
2008-04-05 14:53:35 +00:00
|
|
|
gzip -f /opt/freeware/src/packages/SOURCES/xCAT-server-2.0.tar
|
2008-01-17 20:33:12 +00:00
|
|
|
cd ./xCAT-server-2.0
|
|
|
|
rm -f /opt/freeware/src/packages/SRPMS/xCAT-server-2.0*rpm /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
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if [ -f /etc/redhat-release ]
|
|
|
|
then
|
|
|
|
pkg="redhat"
|
|
|
|
else
|
|
|
|
pkg="packages"
|
|
|
|
fi
|
|
|
|
|
2008-02-27 19:52:07 +00:00
|
|
|
tar --exclude .svn -czf /usr/src/$pkg/SOURCES/xCAT-server-2.0.tar.gz xCAT-server-2.0;
|
2008-01-17 20:33:12 +00:00
|
|
|
rm -f /usr/src/$pkg/SRPMS/xCAT-server-2.0*rpm /usr/src/$pkg/RPMS/noarch/xCAT-server-2.0*rpm
|
|
|
|
rpmbuild -ta /usr/src/$pkg/SOURCES/xCAT-server-2.0.tar.gz ;
|
2007-10-26 22:44:33 +00:00
|
|
|
#rpm -Uvh /usr/src/$pkg/RPMS/noarch/xCAT-server-2.0*rpm
|
|
|
|
fi
|