Fixed modifyUtils and makeperlxcatrpm to work on AIX

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
bp-sawyers 2009-01-28 20:26:03 +00:00
parent 2b171fcb4d
commit 1af0fb4bf3
2 changed files with 10 additions and 3 deletions

View File

@ -17,10 +17,10 @@ then
#rpm -ba perl-xCAT.spec
source=/opt/freeware/src/packages
rm -f $source/SRPMS/perl-xCAT*rpm $source/RPMS/ppc/perl-xCAT*rpm
echo '.svn' > /tmp/xcat-excludes
tar -X /tmp/xcat-excludes -cf $source/perl-xCAT-$VER.tar perl-xCAT
tar -X /tmp/xcat-excludes -cf $source/SOURCES/perl-xCAT-$VER.tar perl-xCAT
gzip -f $source/SOURCES/perl-xCAT-$VER.tar
rm -f $source/SRPMS/perl-xCAT*rpm $source/RPMS/ppc/perl-xCAT*rpm
rpm -ba perl-xCAT/perl-xCAT.spec
#rpm -ta $source/SOURCES/perl-xCAT-$VER.tar.gz
else

View File

@ -18,4 +18,11 @@ if [ $? -eq 0 ]
fi
BUILDDATE=`date`
#echo ". '(${SVNREF}built $BUILDDATE)'"
sed -i -e s/#XCATVERSIONSUBHERE/". '$VER'"/ -e s/#XCATSVNBUILDSUBHERE/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Utils.pm
if [ "$(uname)" = "AIX" ]
then
sed -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Utils.pm >xCAT/Utils.pm.new
mv xCAT/Utils.pm.new xCAT/Utils.pm
else
sed -i -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Utils.pm
fi