Fix SConstruct indentation bug in CopyTree
This commit is contained in:
parent
19b1bf216f
commit
54e9da89c5
22
SConstruct
22
SConstruct
@ -123,17 +123,17 @@ def CopyTree(dst, src, env):
|
|||||||
for f in os.listdir(src):
|
for f in os.listdir(src):
|
||||||
srcPath = os.path.join(src, f)
|
srcPath = os.path.join(src, f)
|
||||||
dstPath = os.path.join(dst, f)
|
dstPath = os.path.join(dst, f)
|
||||||
if f.startswith("."):
|
if f.startswith("."):
|
||||||
# Ignore hidden files
|
# Ignore hidden files
|
||||||
pass
|
pass
|
||||||
elif os.path.isdir(srcPath):
|
elif os.path.isdir(srcPath):
|
||||||
if not os.path.exists(dstPath):
|
if not os.path.exists(dstPath):
|
||||||
os.makedirs(dstPath)
|
os.makedirs(dstPath)
|
||||||
DirCopyHelper(srcPath, dstPath)
|
DirCopyHelper(srcPath, dstPath)
|
||||||
else:
|
else:
|
||||||
env.Command(dstPath, srcPath, Copy("$TARGET", "$SOURCE"))
|
env.Command(dstPath, srcPath, Copy("$TARGET", "$SOURCE"))
|
||||||
if (not os.path.exists(dst)):
|
if (not os.path.exists(dst)):
|
||||||
os.makedirs(dst)
|
os.makedirs(dst)
|
||||||
DirCopyHelper(src, dst)
|
DirCopyHelper(src, dst)
|
||||||
|
|
||||||
# XXX: Hack to support clang static analyzer
|
# XXX: Hack to support clang static analyzer
|
||||||
|
Loading…
Reference in New Issue
Block a user