aboutsummaryrefslogtreecommitdiffstats
path: root/maven-meeper
diff options
context:
space:
mode:
authorJason van Zyl <jvanzyl@apache.org>2006-10-11 21:45:43 +0000
committerJason van Zyl <jvanzyl@apache.org>2006-10-11 21:45:43 +0000
commitfb708c383b8caf0ad456d8528c238766bdebd714 (patch)
tree8eafe68b407af78e3f77120d7a4b294b928a64a6 /maven-meeper
parent0c30935dfd779c7343497cf37c8d77787a3c8370 (diff)
downloadarchiva-fb708c383b8caf0ad456d8528c238766bdebd714.tar.gz
archiva-fb708c383b8caf0ad456d8528c238766bdebd714.zip
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@462974 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven-meeper')
-rwxr-xr-xmaven-meeper/src/bin/synchronize.sh19
-rwxr-xr-xmaven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh (renamed from maven-meeper/src/bin/synchronize/ibiblio-sync/sync-central-to-ibiblio.sh)0
2 files changed, 15 insertions, 4 deletions
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
index aff6ace16..aff6ace16 100755
--- a/maven-meeper/src/bin/synchronize/ibiblio-sync/sync-central-to-ibiblio.sh
+++ b/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh