summaryrefslogtreecommitdiff
path: root/auto/clean
diff options
context:
space:
mode:
authorroot <root@dasajuma.(none)>2010-09-02 10:26:04 +0200
committerroot <root@dasajuma.(none)>2010-09-02 10:26:04 +0200
commit8e0d211bf674953f2830830e27cb80a8b720ef17 (patch)
treea7814d6dd37b84476628e51d9fcb5f3ea98bba8e /auto/clean
downloadkanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.zip
kanotix-8e0d211bf674953f2830830e27cb80a8b720ef17.tar.gz
Initial commit
Diffstat (limited to 'auto/clean')
-rwxr-xr-xauto/clean17
1 files changed, 17 insertions, 0 deletions
diff --git a/auto/clean b/auto/clean
new file mode 100755
index 0000000..90634ac
--- /dev/null
+++ b/auto/clean
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+rm -f build.log
+
+# Remove generated files
+rm -f config/binary config/bootstrap config/chroot config/common config/source
+
+# Remove empty directories in config tree
+if ls config/*/ > /dev/null 2>&1
+then
+ rmdir --ignore-fail-on-non-empty config/*/
+fi
+
+if [ -d config ]
+then
+ rmdir --ignore-fail-on-non-empty config
+fi