diff options
Diffstat (limited to 'auto/clean')
-rwxr-xr-x | auto/clean | 17 |
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 |