./all clean
authorRudolf Polzer <divVerent@alientrap.org>
Mon, 9 Aug 2010 11:59:42 +0000 (13:59 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Mon, 9 Aug 2010 11:59:42 +0000 (13:59 +0200)
all

diff --git a/all b/all
index 30b06eb32df415bed1e339a616d90d7b4118eaef..bda0c655413daf6142961b7b98762cf5a8a08c21 100755 (executable)
--- a/all
+++ b/all
@@ -856,6 +856,19 @@ case "$cmd" in
                rm -f "$t"
                echo "$report" | ssh nexuiz@rm.endoftheinternet.org cat '>>' public_html/xonotic-merge-notes.txt
                ;;
+       clean)
+               for d in $repos; do
+                       enter "$d0/$d" verbose
+                       case "$d" in
+                               .)
+                                       git clean -df
+                                       ;;
+                               *)
+                                       git clean -xdf
+                                       ;;
+                       esac
+               done
+               ;;
 
        # release building goes here
        release-prepare)