From 8b9dfddeaf8de7509906d74618bf92b86c83193e Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sat, 4 Nov 2006 10:18:07 +0000 Subject: [PATCH] o create properties files for repository conversion using archiva git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471158 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/bin/m1-m2-conversion/convert-m1-m2.sh | 19 ++++++++++--- .../java.net/sync-repoclean.sh | 23 ---------------- .../java.net/synchronize.properties | 27 ------------------- .../bin/m1-m2-conversion/sync-repoclean.sh | 19 ------------- .../m1-m2-conversion/synchronize.properties | 24 ----------------- 5 files changed, 15 insertions(+), 97 deletions(-) delete mode 100755 maven-meeper/src/bin/m1-m2-conversion/java.net/sync-repoclean.sh delete mode 100644 maven-meeper/src/bin/m1-m2-conversion/java.net/synchronize.properties delete mode 100755 maven-meeper/src/bin/m1-m2-conversion/sync-repoclean.sh diff --git a/maven-meeper/src/bin/m1-m2-conversion/convert-m1-m2.sh b/maven-meeper/src/bin/m1-m2-conversion/convert-m1-m2.sh index 9046f6b33..8fb140f44 100755 --- a/maven-meeper/src/bin/m1-m2-conversion/convert-m1-m2.sh +++ b/maven-meeper/src/bin/m1-m2-conversion/convert-m1-m2.sh @@ -1,6 +1,17 @@ #!/bin/sh -java -jar archiva-cli-1.0-SNAPSHOT-cli.jar -c \ - -o /home/maven/repository-staging/to-ibiblio/maven \ - -n /home/maven/repository-staging/to-ibiblio/maven2-repoclean \ - -b **/*.pom,**/activation/**,**/javamail/**,**/jaxm/**,**/jaxp/**,**/jaxrpc/**,**/jca/**,**/jce/**,**/jdbc/**,**/jdo/**,**/jms/**,**/jndi/**,**/saaj/** +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 + +dir=/home/maven/repository-staging/to-ibiblio +src=$dir/maven2-repoclean +dst=$dir/maven2 + +rsync --ignore-existing -rvpl $src/ $dst/ > $log + +for f in `cat $log | grep maven-metadata.xml$` ; do + md5sum $dst/$f > $dst/$f.md5; + sha1sum $dst/$f > $dst/$f.sha1; + md5sum $src/$f > $src/$f.md5; + sha1sum $src/$f > $src/$f.sha1; +done diff --git a/maven-meeper/src/bin/m1-m2-conversion/java.net/sync-repoclean.sh b/maven-meeper/src/bin/m1-m2-conversion/java.net/sync-repoclean.sh deleted file mode 100755 index 842492c7a..000000000 --- a/maven-meeper/src/bin/m1-m2-conversion/java.net/sync-repoclean.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -dir=/home/maven/repository-staging/to-ibiblio -repocleanhome=$HOME/repository-tools/repoclean -log=$repocleanhome/last-changes-java.net.log - -src=maven2-repoclean-java.net/com/sun -dst=maven2/com/sun - -cd $dir/maven-java.net - -cvs update -P - -$repocleanhome/repoclean.sh ~/components/maven-meeper/src/bin/m1-m2-conversion/java.net/synchronize.properties - -rsync --ignore-existing -rvpl $dir/$src/ $dir/$dst/ > $log - -for f in `cat $log | grep maven-metadata.xml$` ; do - md5sum $dir/$dst/$f > $dir/$dst/$f.md5; - sha1sum $dir/$dst/$f > $dir/$dst/$f.sha1; - md5sum $dir/$src/$f > $dir/$src/$f.md5; - sha1sum $dir/$src/$f > $dir/$src/$f.sha1; -done diff --git a/maven-meeper/src/bin/m1-m2-conversion/java.net/synchronize.properties b/maven-meeper/src/bin/m1-m2-conversion/java.net/synchronize.properties deleted file mode 100644 index dbb80590e..000000000 --- a/maven-meeper/src/bin/m1-m2-conversion/java.net/synchronize.properties +++ /dev/null @@ -1,27 +0,0 @@ -# [REQUIRED OPTIONS] -sourceRepositoryPath=/home/maven/repository-staging/to-ibiblio/maven-java.net -targetRepositoryPath=/home/maven/repository-staging/to-ibiblio/maven2-repoclean-java.net -reportsPath=/home/maven/repository-staging/to-ibiblio/reports/repoclean - -blacklistedPatterns=**/*.pom - -reportOnly=false -reportWarnings=false - -errorReport.mailOnError=true -errorReport.fromName=REPOCLEAN -errorReport.fromAddress=maven@codehaus.org -errorReport.toName=Maven Developer List -errorReport.toAddress=notifications@maven.apache.org -errorReport.subject=[REPOCLEAN] Error(s) occurred while converting repository -errorReport.link=http://www.maven.org/reports/repoclean/#date/repository.report.txt - - -# [DEFAULT VALUE: legacy] -#sourceRepositoryLayout=[legacy|default] - -# [DEFAULT VALUE: v3] -#sourcePomType=[v3|v4] - -# [DEFAULT VALUE: default] -#targetRepositoryLayout=[legacy|default] diff --git a/maven-meeper/src/bin/m1-m2-conversion/sync-repoclean.sh b/maven-meeper/src/bin/m1-m2-conversion/sync-repoclean.sh deleted file mode 100755 index 8f118d0d1..000000000 --- a/maven-meeper/src/bin/m1-m2-conversion/sync-repoclean.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -dir=/home/maven/repository-staging/to-ibiblio -repocleanhome=$HOME/repository-tools/repoclean -log=$repocleanhome/last-changes.log - -src=maven2-repoclean -dst=maven2 - -$repocleanhome/repoclean.sh ~/components/maven-meeper/src/bin/m1-m2-conversion/synchronize.properties - -rsync --ignore-existing -rvpl $dir/$src/ $dir/$dst/ > $log - -for f in `cat $log | grep maven-metadata.xml$` ; do - md5sum $dir/$dst/$f > $dir/$dst/$f.md5; - sha1sum $dir/$dst/$f > $dir/$dst/$f.sha1; - md5sum $dir/$src/$f > $dir/$src/$f.md5; - sha1sum $dir/$src/$f > $dir/$src/$f.sha1; -done diff --git a/maven-meeper/src/bin/m1-m2-conversion/synchronize.properties b/maven-meeper/src/bin/m1-m2-conversion/synchronize.properties index c2e7e064a..cf7acb345 100644 --- a/maven-meeper/src/bin/m1-m2-conversion/synchronize.properties +++ b/maven-meeper/src/bin/m1-m2-conversion/synchronize.properties @@ -1,27 +1,3 @@ -# [REQUIRED OPTIONS] sourceRepositoryPath=/home/maven/repository-staging/to-ibiblio/maven targetRepositoryPath=/home/maven/repository-staging/to-ibiblio/maven2-repoclean -reportsPath=/home/maven/repository-staging/to-ibiblio/reports/repoclean - blacklistedPatterns=**/*.pom,**/activation/**,**/javamail/**,**/jaxm/**,**/jaxp/**,**/jaxrpc/**,**/jca/**,**/jce/**,**/jdbc/**,**/jdo/**,**/jms/**,**/jndi/**,**/saaj/** - -reportOnly=false -reportWarnings=false - -errorReport.mailOnError=true -errorReport.fromName=REPOCLEAN -errorReport.fromAddress=maven@codehaus.org -errorReport.toName=Maven Developer List -errorReport.toAddress=notifications@maven.apache.org -errorReport.subject=[REPOCLEAN] Error(s) occurred while converting repository -errorReport.link=http://www.maven.org/reports/repoclean/#date/repository.report.txt - - -# [DEFAULT VALUE: legacy] -#sourceRepositoryLayout=[legacy|default] - -# [DEFAULT VALUE: v3] -#sourcePomType=[v3|v4] - -# [DEFAULT VALUE: default] -#targetRepositoryLayout=[legacy|default] -- 2.39.5