From 7417acfe17efedc5a29083bd8845e4d27fc71e3d Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Thu, 13 Aug 2009 19:07:34 +0000 Subject: [PATCH] Automatically upload tarball to FRS area also git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3995 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- buildcore.sh | 3 ++- builddep.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/buildcore.sh b/buildcore.sh index 162c89db0..c6d6af641 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -200,7 +200,8 @@ do : ; done if [ "$PROMOTE" = 1 -a "$REL" != "devel" ]; then # upload tarball to FRS area #scp $TARNAME $UPLOADUSER@web.sourceforge.net:uploads/ - echo "$TARNAME has been built. Remember to upload it to sourceforge using its File Manager." + while ! rsync -v $TARNAME "$UPLOADUSER,xcat@web.sourceforge.net:/home/frs/project/x/xc/xcat/xcat/$REL.x Linux/" + do : ; done else while ! rsync -v $TARNAME $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/$REL/ do : ; done diff --git a/builddep.sh b/builddep.sh index d8847709f..687283eeb 100755 --- a/builddep.sh +++ b/builddep.sh @@ -49,9 +49,11 @@ fi # Upload the dir structure to SF yum area. Currently we do not have it preserving permissions # because that gives errors when different users try to do it. -rsync -rlv * $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/xcat-dep/ +while ! rsync -rlv --delete * $UPLOADUSER,xcat@web.sourceforge.net:htdocs/yum/xcat-dep/ +do : ; done #ssh jbjohnso@shell1.sf.net "cd /home/groups/x/xc/xcat/htdocs/yum/; rm -rf dep-snap; tar jxvf $DFNAME" -# Upload the tarball to the SF uploads dir for the FRS -#scp ../$DFNAME $UPLOADUSER@web.sourceforge.net:uploads/ -echo "$DFNAME has been built. Remember to upload it to sourceforge using its File Manager." +# Upload the tarball to the SF FRS Area +#scp ../$DFNAME "$UPLOADUSER@web.sourceforge.net:/home/frs/project/x/xc/xcat/xcat-dep/2.x Linux/" +while ! rsync -v ../$DFNAME "$UPLOADUSER,xcat@web.sourceforge.net:/home/frs/project/x/xc/xcat/xcat-dep/2.x Linux/" +do : ; done