2008-02-22 21:54:44 +00:00
|
|
|
#!/bin/sh
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
OSNAME=$(uname)
|
2008-06-03 15:03:32 +00:00
|
|
|
VER="2.1"
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
if [ "$OSNAME" = "AIX" ]
|
|
|
|
then
|
2008-01-17 20:33:12 +00:00
|
|
|
|
|
|
|
echo '.svn' > /tmp/xcat-excludes
|
2008-06-03 15:03:32 +00:00
|
|
|
tar -X /tmp/xcat-excludes -cf /opt/freeware/src/packages/SOURCES/perl-xCAT-$VER.tar perl-xCAT
|
|
|
|
gzip -f /opt/freeware/src/packages/SOURCES/perl-xCAT-$VER.tar
|
|
|
|
cd ./perl-xCAT
|
|
|
|
rm -f /opt/freeware/src/packages/SRPMS/perl-xCAT-$VER*rpm /opt/freeware/src/packages/RPMS/ppc/perl-xCAT-$VER*rpm
|
2007-10-26 22:44:33 +00:00
|
|
|
rpm -ba perl-xCAT.spec
|
|
|
|
else
|
|
|
|
if [ -f /etc/redhat-release ]
|
|
|
|
then
|
|
|
|
pkg="redhat"
|
|
|
|
else
|
|
|
|
pkg="packages"
|
|
|
|
fi
|
|
|
|
|
2008-06-03 15:03:32 +00:00
|
|
|
tar --exclude .svn -czf /usr/src/$pkg/SOURCES/perl-xCAT-$VER.tar.gz perl-xCAT/;
|
|
|
|
rm -f /usr/src/$pkg/SRPMS/perl-xCAT-$VER*rpm /usr/src/$pkg/RPMS/noarch/perl-xCAT-$VER*rpm
|
|
|
|
rpmbuild -ta /usr/src/$pkg/SOURCES/perl-xCAT-$VER.tar.gz ;
|
2007-10-26 22:44:33 +00:00
|
|
|
fi
|