From f1b632c46ed40778256bade0462ac5767ceb2819 Mon Sep 17 00:00:00 2001 From: kcudnik Date: Tue, 10 Aug 2021 14:19:15 +0200 Subject: [PATCH] Update autoclean.sh Use git to clean ignored files --- autoclean.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/autoclean.sh b/autoclean.sh index 5e3def13d1c0..22639c231855 100755 --- a/autoclean.sh +++ b/autoclean.sh @@ -1,11 +1,7 @@ #!/bin/bash -rm -rf aclocal.m4 autom4te.cache stamp-h1 libtool configure config.* Makefile.in Makefile config/* m4/* +git clean -dfX -find -type f -name "*~" -print0 | xargs -0 rm -f -find -type f -name "*.sw[po]" -print0 | xargs -0 rm -f -find -type f -name "Makefile" -print0 | xargs -0 rm -f -find -type f -name "Makefile.in" -print0 | xargs -0 rm -f - -find -type d -name .deps -print0 | xargs -0 rm -rf +(cd SAI && git clean -dfX) +true