From 7e6cd3547a23fa6a99ca05f1b2f34f96a322e24a Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 1 Apr 2009 17:46:31 +0000 Subject: [PATCH] Remove .cvsignore as well. Also added DeleteCXX --- makepanda/makepandacore.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 6b91cff098..7abd34c7da 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -541,6 +541,15 @@ def DeleteCVS(dir): shutil.rmtree(subdir) else: DeleteCVS(subdir) + elif (os.path.isfile(subdir) and entry == ".cvsignore"): + os.remove(subdir) + +def DeleteCXX(dir): + for entry in os.listdir(dir): + if (entry != ".") and (entry != ".."): + subdir = dir + "/" + entry + if (os.path.isfile(subdir) and os.path.splitext(subdir)[-1] in [".h", ".I", ".c", ".cxx", ".cpp"]): + os.remove(subdir) def CreateFile(file): if (os.path.exists(file)==0):