From fb708c383b8caf0ad456d8528c238766bdebd714 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Wed, 11 Oct 2006 21:45:43 +0000 Subject: [PATCH] git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@462974 13f79535-47bb-0310-9956-ffa450edef68 --- maven-meeper/src/bin/synchronize.sh | 19 +++++++++++++++---- .../sync-central-to-ibiblio.sh | 0 2 files changed, 15 insertions(+), 4 deletions(-) rename maven-meeper/src/bin/synchronize/{ibiblio-sync => }/sync-central-to-ibiblio.sh (100%) diff --git a/maven-meeper/src/bin/synchronize.sh b/maven-meeper/src/bin/synchronize.sh index 2352d10fd..d408f1eff 100755 --- a/maven-meeper/src/bin/synchronize.sh +++ b/maven-meeper/src/bin/synchronize.sh @@ -1,5 +1,8 @@ #!/bin/sh +# 1. Sync Maven 1.x repositories +# 2. Convert Maven 1.x repository to Maven 2.x repository + PID=$$ RUNNING=`ps -ef | grep synchronize.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID` if [ ! -z "$RUNNING" ]; then @@ -8,22 +11,27 @@ if [ ! -z "$RUNNING" ]; then exit 1 fi +. synchronize.properties -TOOLS_BASE=$HOME/components/maven-meeper/src/bin - +# ------------------------------------------------------------------------ +# Syncopate: the Maven 1.x repository +# ------------------------------------------------------------------------ echo Running Syncopate ( - cd $TOOLS_BASE/syncopate + cd $SYNCOPATE ./sync retval=$?; if [ $retval != 0 ]; then exit $retval; fi ) retval=$?; if [ $retval != 0 ]; then exit $retval; fi +# ------------------------------------------------------------------------ +# Repoclean: converting the Maven 1.x repository to Maven 2.x +# ------------------------------------------------------------------------ echo Running repoclean ( - $TOOLS_BASE/repoclean/sync-repoclean.sh + $REPOCLEAN/sync-repoclean.sh retval=$?; if [ $retval != 0 ]; then exit $retval; fi ) retval=$?; if [ $retval != 0 ]; then exit $retval; fi @@ -38,6 +46,9 @@ mv $CL/maven-metadata.xml.tmp $CL/maven-metadata.xml md5sum $CL/maven-metadata.xml > $CL/maven-metadata.xml.md5 sha1sum $CL/maven-metadata.xml > $CL/maven-metadata.xml.sha1 +# ------------------------------------------------------------------------ +# Ibiblio synchronization: sync the central repository to Ibiblio +# ------------------------------------------------------------------------ echo Synchronizing to ibiblio ( diff --git a/maven-meeper/src/bin/synchronize/ibiblio-sync/sync-central-to-ibiblio.sh b/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh similarity index 100% rename from maven-meeper/src/bin/synchronize/ibiblio-sync/sync-central-to-ibiblio.sh rename to maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh