o another random script floating around

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2006-11-05 05:37:32 +00:00
parent a357494875
commit 4100399840
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/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