xcat-core/makeperlxcatrpm
jbjohnso 9f76c555b9 -Fix build scripts for 2.1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1563 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-03 15:03:32 +00:00

27 lines
741 B
Bash
Executable File

#!/bin/sh
OSNAME=$(uname)
VER="2.1"
if [ "$OSNAME" = "AIX" ]
then
echo '.svn' > /tmp/xcat-excludes
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
rpm -ba perl-xCAT.spec
else
if [ -f /etc/redhat-release ]
then
pkg="redhat"
else
pkg="packages"
fi
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 ;
fi