geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r480755 - /geronimo/genesis/trunk/build-harness/bin/clean
Date Wed, 29 Nov 2006 22:56:33 GMT
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
 



Mime
View raw message