mirror of https://github.com/apache/archiva.git
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@462974 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0c30935dfd
commit
fb708c383b
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# 1. Sync Maven 1.x repositories
|
||||||
|
# 2. Convert Maven 1.x repository to Maven 2.x repository
|
||||||
|
|
||||||
PID=$$
|
PID=$$
|
||||||
RUNNING=`ps -ef | grep synchronize.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID`
|
RUNNING=`ps -ef | grep synchronize.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID`
|
||||||
if [ ! -z "$RUNNING" ]; then
|
if [ ! -z "$RUNNING" ]; then
|
||||||
|
@ -8,22 +11,27 @@ if [ ! -z "$RUNNING" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
. synchronize.properties
|
||||||
|
|
||||||
TOOLS_BASE=$HOME/components/maven-meeper/src/bin
|
# ------------------------------------------------------------------------
|
||||||
|
# Syncopate: the Maven 1.x repository
|
||||||
|
# ------------------------------------------------------------------------
|
||||||
echo Running Syncopate
|
echo Running Syncopate
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $TOOLS_BASE/syncopate
|
cd $SYNCOPATE
|
||||||
./sync
|
./sync
|
||||||
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
retval=$?; if [ $retval != 0 ]; then exit $retval; fi
|
||||||
)
|
)
|
||||||
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
|
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
|
||||||
)
|
)
|
||||||
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
|
md5sum $CL/maven-metadata.xml > $CL/maven-metadata.xml.md5
|
||||||
sha1sum $CL/maven-metadata.xml > $CL/maven-metadata.xml.sha1
|
sha1sum $CL/maven-metadata.xml > $CL/maven-metadata.xml.sha1
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------
|
||||||
|
# Ibiblio synchronization: sync the central repository to Ibiblio
|
||||||
|
# ------------------------------------------------------------------------
|
||||||
echo Synchronizing to ibiblio
|
echo Synchronizing to ibiblio
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in New Issue