From: Jan-Benedict G. <jb...@us...> - 2007-07-07 17:53:46
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1759 Modified Files: update_upstream_cvs_sandboxes.sh Log Message: * Preparation for GIT. But not yet... Index: update_upstream_cvs_sandboxes.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/update_upstream_cvs_sandboxes.sh,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- update_upstream_cvs_sandboxes.sh 7 Jul 2007 17:01:35 -0000 1.11 +++ update_upstream_cvs_sandboxes.sh 7 Jul 2007 17:53:43 -0000 1.12 @@ -63,3 +63,25 @@ done popd done + +# +# GIT managed archives +# +for COMPONENT in ; do + pushd "${UPSTREAM_SANDBOXES_PATH}/${COMPONENT}" + for i in `seq 1 "${MAX_TRIES}"`; do + echo "Updating ${COMPONENT}, try #${i}..." + git pull + RET=$? + if [ "${RET}" -eq 0 ]; then + break + else + if [ "${i}" -eq "${MAX_TRIES}" ]; then + echo "Failed ${MAX_TRIES} times to update ${COMPONENT}" >&2 + [ "${IGNORE_ERRORS}" -eq 0 ] && exit "${RET}" + fi + sleep 5 + fi + done + popd +done |