浏览代码

Remove .cvsignore as well. Also added DeleteCXX

rdb 16 年之前
父节点
当前提交
7e6cd3547a
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      makepanda/makepandacore.py

+ 9 - 0
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):