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:
parent
ddb0230e3d
commit
a2c3b40ef0
23
buildcore.sh
23
buildcore.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user