From 225f8b0d51c699db74026d367f6294d22cf7c3ae Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 16 Jan 2008 06:32:19 +0000 Subject: [PATCH] Thrift: Improve cleanup.sh. Reviewed By: mcslee Test Plan: dreiss@dreiss-vmware:cleanup:thrift$ ./bootstrap.sh && ./configure && make -j2 && ./cleanup.sh && git status # Shows no untracked files. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665432 13f79535-47bb-0310-9956-ffa450edef68 --- cleanup.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/cleanup.sh b/cleanup.sh index b2dcee18..878bf628 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -1,7 +1,6 @@ #!/bin/sh -subdirs="compiler/cpp lib/cpp lib/py if" - +make distclean >/dev/null 2>&1 rm -rf \ AUTHORS \ ChangeLog \ @@ -15,6 +14,7 @@ autoscan.log \ config.guess \ config.h \ config.hin \ +config.hin~ \ config.log \ config.status \ config.sub \ @@ -28,13 +28,9 @@ libtool \ ltmain.sh \ missing \ ylwrap \ -if/gen-* - -for subdir in ${subdirs}; do - if [ -x "${subdir}/cleanup.sh" ]; then - cwd="`pwd`" - cd "${subdir}" - ./cleanup.sh - cd "${cwd}" - fi -done +if/gen-* \ +compiler/cpp/Makefile.in \ +if/Makefile.in \ +lib/Makefile.in \ +lib/cpp/Makefile.in \ +lib/py/Makefile.in -- 2.17.1