]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
./all clean -f
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 30b06eb32df415bed1e339a616d90d7b4118eaef..ef561178b9f8737eeb54b7f8cf1f9600cb811d38 100755 (executable)
--- a/all
+++ b/all
@@ -856,6 +856,26 @@ case "$cmd" in
                rm -f "$t"
                echo "$report" | ssh nexuiz@rm.endoftheinternet.org cat '>>' public_html/xonotic-merge-notes.txt
                ;;
+       clean)
+               force=false
+               if [ x"$1" = x"-f" ]; then
+                       force=true
+               fi
+               for d in $repos; do
+                       enter "$d0/$d" verbose
+                       if $force; then
+                               git checkout-index -fa
+                       fi
+                       case "$d" in
+                               .)
+                                       git clean -df
+                                       ;;
+                               *)
+                                       git clean -xdf
+                                       ;;
+                       esac
+               done
+               ;;
 
        # release building goes here
        release-prepare)