Update of /cvsroot/linux-vax/toolchain/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13372
Modified Files:
update_upstream_cvs_sandboxes.sh
Log Message:
- Allow to ignore errors during update. This may help just in case
SF.net's CVS servers get wonky again. (...which for sure they do.)
Index: update_upstream_cvs_sandboxes.sh
===================================================================
RCS file: /cvsroot/linux-vax/toolchain/scripts/update_upstream_cvs_sandboxes.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- update_upstream_cvs_sandboxes.sh 1 Jan 2006 19:52:25 -0000 1.8
+++ update_upstream_cvs_sandboxes.sh 15 Jan 2006 11:04:17 -0000 1.9
@@ -6,6 +6,13 @@
fi
MAX_TRIES=5
+IGNORE_ERRORS=0
+if [ $# -eq 1 ]; then
+ if [ "${1}" = "-i" -o "${1}" = "--ignore-errors" ]; then
+ IGNORE_ERRORS=1
+ fi
+fi
+
#
# CVS managed archives
@@ -24,8 +31,9 @@
else
if [ "${i}" -eq "${MAX_TRIES}" ]; then
echo "Failed ${MAX_TRIES} times to update ${COMPONENT}" >&2
- exit 1
+ [ "${IGNORE_ERRORS}" -eq 0 ] && exit "${RET}"
fi
+ sleep 5
fi
done
popd
@@ -47,8 +55,9 @@
svn cleanup
if [ "${i}" -eq "${MAX_TIES}" ]; then
echo "Failed ${MAX_TRIES} times to update ${COMPONENT}" >&2
- exit 1
+ [ "${IGNORE_ERRORS}" -eq 0 ] && exit "${RET}"
fi
+ sleep 5
fi
done
popd
|