You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2006/11/29 23:56:33 UTC

svn commit: r480755 - /geronimo/genesis/trunk/build-harness/bin/clean

Author: jdillon
Date: Wed Nov 29 14:56:32 2006
New Revision: 480755

URL: http://svn.apache.org/viewvc?view=rev&rev=480755
Log:
Allow dir to be passed in

Modified:
    geronimo/genesis/trunk/build-harness/bin/clean

Modified: geronimo/genesis/trunk/build-harness/bin/clean
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/build-harness/bin/clean?view=diff&rev=480755&r1=480754&r2=480755
==============================================================================
--- geronimo/genesis/trunk/build-harness/bin/clean (original)
+++ geronimo/genesis/trunk/build-harness/bin/clean Wed Nov 29 14:56:32 2006
@@ -25,9 +25,12 @@
 DIRNAME=`dirname $0`
 PROGNAME=`basename $0`
 
-BASEDIR=`cd "$DIRNAME"/.. && pwd`
+if [ "x$1" = "x" ]; then
+    dir=`pwd`
+else
+    dir=`cd "$1" && pwd`
+fi
+echo "Cleaning $dir..."
 
-echo "Cleaning $BASEDIR..."
-
-find "$BASEDIR" -name target | xargs rm -rfv
+find "$dir" -name target | xargs rm -rfv