diff --git a/makeperlxcatrpm b/makeperlxcatrpm index 2e5e0b4f6..933ad77bf 100755 --- a/makeperlxcatrpm +++ b/makeperlxcatrpm @@ -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 diff --git a/perl-xCAT/modifyUtils b/perl-xCAT/modifyUtils index bd94e8764..0740a5842 100755 --- a/perl-xCAT/modifyUtils +++ b/perl-xCAT/modifyUtils @@ -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 \ No newline at end of file