diff options
author | Jason van Zyl <jvanzyl@apache.org> | 2006-11-06 00:40:56 +0000 |
---|---|---|
committer | Jason van Zyl <jvanzyl@apache.org> | 2006-11-06 00:40:56 +0000 |
commit | be02ad9bdd92eb93903d08feb7ac9a8c641992f3 (patch) | |
tree | fa9bb9b02ae005f63b56ac1c640bbf97b6f7f663 /maven-meeper/src | |
parent | 8706c17e639e7c08eda7ccbcdb0165c53db270c9 (diff) | |
download | archiva-be02ad9bdd92eb93903d08feb7ac9a8c641992f3.tar.gz archiva-be02ad9bdd92eb93903d08feb7ac9a8c641992f3.zip |
o getting rid of a couple things not needed anymore
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471586 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven-meeper/src')
-rwxr-xr-x | maven-meeper/src/bin/clean-snapshots.sh | 13 | ||||
-rw-r--r-- | maven-meeper/src/bin/shuffle_poms.sh | 98 |
2 files changed, 0 insertions, 111 deletions
diff --git a/maven-meeper/src/bin/clean-snapshots.sh b/maven-meeper/src/bin/clean-snapshots.sh deleted file mode 100755 index c78669b49..000000000 --- a/maven-meeper/src/bin/clean-snapshots.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -base=/home/projects/maven/repository-staging -cd $base/to-ibiblio/maven2 -dest=$base/snapshots/maven2 - -find . -name '*SNAPSHOT*' -type d | while read t1 -do - t2=`echo $t1 | sed 's#/[^/]*$##'` - mkdir -p $dest/$t2 - mv $t1 $dest/$t2 - rmdir $t1 -done diff --git a/maven-meeper/src/bin/shuffle_poms.sh b/maven-meeper/src/bin/shuffle_poms.sh deleted file mode 100644 index 6a5dd9455..000000000 --- a/maven-meeper/src/bin/shuffle_poms.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/bash - -copyFile() -{ - echo Copying: - echo " $1" - echo " --> $2" - cp $1 $2 - - if [ -f $1.sha1 ]; then - echo " (with sha1)" - cp $1.sha1 $2.sha1 - fi - - if [ -f $1.md5 ]; then - echo " (with md5)" - cp $1.md5 $2.md5 - fi -} - -processPom() -{ - contents=`cat $1 | tr '\n' ' ' | sed 's#<parent>.*</parent>##m' | sed 's#<dependencies>.*</dependencies>##m'` - groupId=`echo $contents | grep '<groupId>' | sed 's#^.*<groupId>##' | sed 's#</groupId>.*$##'` - artifactId=`echo $contents | grep '<artifactId>' | sed 's#^.*<artifactId>##' | sed 's#</artifactId>.*$##'` - version=`echo $contents | grep '<version>' | sed 's#^.*<version>##' | sed 's#</version>.*$##'` - parent=`cat $1 | tr '\n' ' ' | grep '<parent>' | sed 's#^.*<parent>##' | sed 's#</parent>.*$##'` - - if [ -z "$groupId" ]; then - groupId=`echo $parent | grep '<groupId>' | sed 's#^.*<groupId>##' | sed 's#</groupId>.*$##'` - fi - - if [ -z "$artifactId" ]; then - artifactId=`echo $parent | grep '<artifactId>' | sed 's#^.*<artifactId>##' | sed 's#</artifactId>.*$##'` - fi - - if [ -z "$version" ]; then - version=`echo $parent | grep '<version>' | sed 's#^.*<version>##' | sed 's#</version>.*$##'` - fi - - if [ -z "$version" ]; then - echo no version - exit 1 - fi - - if [ -z "$artifactId" ]; then - echo no artifactId - exit 1 - fi - - if [ -z "$groupId" ]; then - echo no groupId - exit 1 - fi - - slashedGroupId=`echo $groupId | sed 's#\.#/#g'` - tsVersion=`echo $1 | sed "s#^.*/$artifactId-##" | sed 's#.pom$##'` - - oldPath=$slashedGroupId/$artifactId/$version/$artifactId-$tsVersion.pom - newPath=$slashedGroupId/$artifactId-$tsVersion.pom - oldTxtVersion=$slashedGroupId/$artifactId/$version/$artifactId-$version.version.txt - newTxtVersion=$slashedGroupId/$artifactId-$version.version.txt - - banner=0 - - if [ ! -f $oldPath ]; then - copyFile $1 $oldPath - banner=1 - fi - - if [ ! -f $newPath ]; then - copyFile $1 $newPath - banner=1 - fi - - if [ -f $newTxtVersion ]; then - if [ ! -f $oldTxtVersion ]; then - copyFile $newTxtVersion $oldTxtVersion - banner=1 - fi - fi - - if [ -f $oldTxtVersion ]; then - if [ ! -f $newTxtVersion ]; then - copyFile $oldTxtVersion $newTxtVersion - banner=1 - fi - fi - - if [ $banner -eq 1 ]; then - echo ================================================== - fi -} - -find . -mtime -1 -name '*.pom' | xargs grep -l '<packaging>pom</packaging>' | while read pom -do - processPom $pom -done |