mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
Remove .cvsignore as well. Also added DeleteCXX
This commit is contained in:
parent
0d0db0fa16
commit
7e6cd3547a
@ -541,6 +541,15 @@ def DeleteCVS(dir):
|
|||||||
shutil.rmtree(subdir)
|
shutil.rmtree(subdir)
|
||||||
else:
|
else:
|
||||||
DeleteCVS(subdir)
|
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):
|
def CreateFile(file):
|
||||||
if (os.path.exists(file)==0):
|
if (os.path.exists(file)==0):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user