]> source.dussan.org Git - archiva.git/commitdiff
o moving script to top level bin/ directory on the maven.org machine and adjusting...
authorJason van Zyl <jvanzyl@apache.org>
Thu, 23 Nov 2006 03:28:35 +0000 (03:28 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Thu, 23 Nov 2006 03:28:35 +0000 (03:28 +0000)
o use a variable for the exclusion file in the m2 sync scripts

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@478449 13f79535-47bb-0310-9956-ffa450edef68

maven-meeper/src/bin/crontab.txt
maven-meeper/src/bin/m1-m2-conversion/convert-m1-m2.sh
maven-meeper/src/bin/synchronize.properties
maven-meeper/src/bin/synchronize.sh
maven-meeper/src/bin/synchronize/m2-sync/m2-sync.sh

index daa6b9b4da7f96b05700e6136a0a374433e1955e..938519813dd233e49728438aa236b2f5ffbf258a 100644 (file)
@@ -1,4 +1,4 @@
 # Cron jobs for the maven repository
 MAILTO=jason@maven.org
-0  */4 * * * cd $HOME/components/maven-meeper/src/bin; ./synchronize.sh
+0  */4 * * * cd $HOME/bin; ./synchronize.sh
 0   0  * * * cd $HOME/reports; ./run.sh
index fa9f4d16be0bb8eeaaff01737ce09ceb79962245..1db947a2dcda1cc84ead16ff677baf6fbba0879e 100755 (executable)
@@ -4,8 +4,7 @@ syncProperties=$1
 
 . $syncProperties
 
-java -jar archiva-cli-1.0-SNAPSHOT-cli.jar -c synchronize.properties
-#java -jar archiva-cli-1.0-SNAPSHOT-cli.jar -c synchronize-java.net.properties
+$JAVA -jar archiva-cli-1.0-SNAPSHOT-cli.jar -c synchronize.properties
 
 dir=/home/maven/repository-staging/to-ibiblio
 src=$dir/maven2-converted-from-maven1
index f96322822caeced2ae8afcfaf73761a981db8760..b5d88017d24c665733351ac629b053713a400a9c 100644 (file)
@@ -1,13 +1,15 @@
 #!/bin/sh
 
 export CENTRAL_HOST=maven01.managed.contegix.com
-export TOOLS_BASE=$HOME/components/maven-meeper/src/bin
+export TOOLS_BASE=$HOME/bin
 export SYNC_TOOLS=$TOOLS_BASE/synchronize
 export SYNCOPATE=$SYNC_TOOLS/syncopate
 export M2_SYNC=$SYNC_TOOLS/m2-sync
 export REPOCLEAN=$TOOLS_BASE/m1-m2-conversion
 export M1_M2_REWRITE_RULES=$SYNC_TOOLS/m1-m2-mod-rewrite-rules.txt
 export SYNC_REPORTS=$HOME/repository-staging/to-ibiblio/reports/sync
+export JAVA_HOME=/opt/java/sdk/current
+export JAVA=$JAVA_HOME/bin/java
 
 export STAGING_DIR=$HOME/repository-staging/to-ibiblio
 export MAVEN1_REPO=$STAGING_DIR/maven
index de648a682fe8204c93aae8caa1a5a59fde49d5de..0f2c28e31a5694d75d3a696f60b80d78f85432b7 100755 (executable)
@@ -34,6 +34,7 @@ echo "SYNCOPATE = $SYNCOPATE"
 echo "REPOCLEAN = $REPOCLEAN"
 echo "M1_M2_REWRITE_RULES = $M1_M2_REWRITE_RULES"
 echo "SYNC_REPORTS = $SYNC_REPORTS"
+echo "JAVA = $JAVA"
 
 [ "$MODE" = "batch" ] && echo && echo "Press any key to continue, or hit ^C to quit." && echo
 
index 0559972ba0ec38a1211de5d31431df81553704b0..4c79f95743a9be6057d0a59f883c596fbe85210b 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+exclusions=$HOME/bin/synchronize/syncopate/exclusions.txt
+
 echo This script is very temporary. Please validate all input files in the source repository before blindly copying them in.
 echo Ensure all artifacts have a valid POM.
 echo This will be removed when the repository manager is in place.
@@ -47,13 +49,13 @@ for f in `find conf -maxdepth 1 -iname "*.sh"`
   # check for changed files
   if [ "$1" == "check" ]; then
 
-    rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/synchronize/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR >> $CHANGED_LOG
+    rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$exclusions --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR >> $CHANGED_LOG
 
   else
 
     echo "Syncing $FROM -> $GROUP_DIR"
-    rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/synchronize/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR
-    rsync --exclude-from=$HOME/components/maven-meeper/src/bin/synchronize/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR
+    rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$exclusions $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR
+    rsync --exclude-from=$exclusions --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM/$GROUP_DIR $BASEDIR/$GROUP_DIR
 
   fi