Fix UP=0 logic in build script

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
bp-sawyers 2009-11-12 14:35:24 +00:00
parent ddb0230e3d
commit a2c3b40ef0

View File

@ -155,19 +155,12 @@ if $GREP -E '^[UAD] +xCAT/' $SVNUP; then
mv /usr/src/$pkg/RPMS/*/xCAT-$VER*rpm $DESTDIR
fi
# Decide whether to upload or not
if [ -n "$UP" ]; then
if [ $UP == 0 ]; then
exit 0;
fi
#else we will continue
else
if [ $UPLOAD == 0 ]; then
echo "Nothing new detected"
exit 0;
fi
#else we will continue
# Decide if anything was built or not
if [ $UPLOAD == 0 ]; then
echo "Nothing new detected"
exit 0;
fi
#else we will continue
# Prepare the RPMs for pkging and upload
# get gpg keys in place
@ -236,6 +229,12 @@ tar -hjcvf $TARNAME $XCATCORE
chgrp xcat $TARNAME
chmod g+w $TARNAME
# Decide whether to upload or not
if [ -n "$UP" ] && [ "$UP" == 0 ]; then
exit 0;
fi
#else we will continue
# Upload the individual RPMs to sourceforge
if [ ! -e core-snap ]; then
ln -s xcat-core core-snap