]> source.dussan.org Git - archiva.git/commitdiff
o another random script floating around
authorJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 05:37:32 +0000 (05:37 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 05:37:32 +0000 (05:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471371 13f79535-47bb-0310-9956-ffa450edef68

maven-meeper/src/bin/clean-snapshots.sh [new file with mode: 0755]

diff --git a/maven-meeper/src/bin/clean-snapshots.sh b/maven-meeper/src/bin/clean-snapshots.sh
new file mode 100755 (executable)
index 0000000..c78669b
--- /dev/null
@@ -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