diff --git a/maven-meeper/src/bin/synchronize.sh b/maven-meeper/src/bin/synchronize.sh index 8e0438489b..f6f0fec149 100755 --- a/maven-meeper/src/bin/synchronize.sh +++ b/maven-meeper/src/bin/synchronize.sh @@ -1,34 +1,42 @@ -#!/bin/sh - -PID=$$ -RUNNING=`ps -ef | grep synchronize.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID` -if [ ! -z "$RUNNING" ]; then - echo Sync already running... exiting - echo $RUNNING - exit 1 -fi - - -TOOLS_BASE=/home/projects/maven/repository-tools -( - cd $TOOLS_BASE/syncopate - ./sync - retval=$?; if [ $retval != 0 ]; then exit $retval; fi -) -retval=$?; if [ $retval != 0 ]; then exit $retval; fi - -( - cd $TOOLS_BASE/repoclean - ./repoclean.sh synchronize.properties - retval=$?; if [ $retval != 0 ]; then exit $retval; fi -) -retval=$?; if [ $retval != 0 ]; then exit $retval; fi - - -( - cd $TOOLS_BASE/ibiblio-sync - ./synchronize-codehaus-to-ibiblio.sh - retval=$?; if [ $retval != 0 ]; then exit $retval; fi -) -retval=$?; if [ $retval != 0 ]; then exit $retval; fi - +#!/bin/sh + +PID=$$ +RUNNING=`ps -ef | grep synchronize.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID` +if [ ! -z "$RUNNING" ]; then + echo Sync already running... exiting + echo $RUNNING + exit 1 +fi + + +TOOLS_BASE=/home/projects/maven/repository-tools +( + cd $TOOLS_BASE/syncopate + ./sync + retval=$?; if [ $retval != 0 ]; then exit $retval; fi +) +retval=$?; if [ $retval != 0 ]; then exit $retval; fi + +( + cd $TOOLS_BASE/repoclean + ./repoclean.sh synchronize.properties + retval=$?; if [ $retval != 0 ]; then exit $retval; fi +) +retval=$?; if [ $retval != 0 ]; then exit $retval; fi + + +( + cd /home/projects/maven/repository-staging/to-ibiblio/maven2 + svn export --force svn://svn.codehaus.org/maven/scm/repository/ . + retval=$?; if [ $retval != 0 ]; then exit $retval; fi +) +retval=$?; if [ $retval != 0 ]; then exit $retval; fi + + +( + cd $TOOLS_BASE/ibiblio-sync + ./synchronize-codehaus-to-ibiblio.sh + retval=$?; if [ $retval != 0 ]; then exit $retval; fi +) +retval=$?; if [ $retval != 0 ]; then exit $retval; fi +