[Webfunds-commits] java build

Ian Grigg iang@cypherpunks.ai
Sat, 26 Aug 2000 19:17:45 -0400 (AST)


iang        00/08/26 19:17:45

  Modified:    .        build
  Log:
  YA careful cleanup

Revision  Changes    Path
1.25      +11 -10    java/build

Index: build
===================================================================
RCS file: /home/webfunds/cvsroot/java/build,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- build	2000/08/17 18:16:43	1.24
+++ build	2000/08/26 23:17:45	1.25
@@ -2,16 +2,17 @@
 export build=${BUILD}
 
 
-# export list="${WF_DIRS}"
-if [ $# = 0 ]
-then
-    export list="${WF_DIRS}"
-    # this tries to be careful, blows away only the directories that
-    # it knows about.  OTOH if the list changes, then there is trouble.
-    ( cd ${build} && rm -rf ${list} ) 2>&-
-else
-    export list="$@"
-fi
+export list="${WF_DIRS}"
+
+# this tries to be careful, blows away only the directories that
+# it knows about.  OTOH if the list changes, then there is trouble
+# so we try and print out the list of what was there...
+(
+    cd ${build} &&
+    rm -rf ${list} &&
+    find . -type f -print &&
+    find * -type d -depth -exec rmdir {} \;
+)
 
 ./build_env || exit 1