archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r471371 - /maven/archiva/trunk/maven-meeper/src/bin/clean-snapshots.sh
Date Sun, 05 Nov 2006 05:37:33 GMT
Author: jvanzyl
Date: Sat Nov  4 21:37:32 2006
New Revision: 471371

URL: http://svn.apache.org/viewvc?view=rev&rev=471371
Log:
o another random script floating around

Added:
    maven/archiva/trunk/maven-meeper/src/bin/clean-snapshots.sh   (with props)

Added: maven/archiva/trunk/maven-meeper/src/bin/clean-snapshots.sh
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/maven-meeper/src/bin/clean-snapshots.sh?view=auto&rev=471371
==============================================================================
--- maven/archiva/trunk/maven-meeper/src/bin/clean-snapshots.sh (added)
+++ maven/archiva/trunk/maven-meeper/src/bin/clean-snapshots.sh Sat Nov  4 21:37:32 2006
@@ -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

Propchange: maven/archiva/trunk/maven-meeper/src/bin/clean-snapshots.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message