From 54e9da89c501182571c3502792aee86f28bce76f Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Sat, 10 Dec 2022 01:07:35 -0500 Subject: [PATCH] Fix SConstruct indentation bug in CopyTree --- SConstruct | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/SConstruct b/SConstruct index 7e7b33c..77d87bd 100644 --- a/SConstruct +++ b/SConstruct @@ -123,17 +123,17 @@ def CopyTree(dst, src, env): for f in os.listdir(src): srcPath = os.path.join(src, f) dstPath = os.path.join(dst, f) - if f.startswith("."): - # Ignore hidden files - pass - elif os.path.isdir(srcPath): - if not os.path.exists(dstPath): - os.makedirs(dstPath) - DirCopyHelper(srcPath, dstPath) - else: - env.Command(dstPath, srcPath, Copy("$TARGET", "$SOURCE")) - if (not os.path.exists(dst)): - os.makedirs(dst) + if f.startswith("."): + # Ignore hidden files + pass + elif os.path.isdir(srcPath): + if not os.path.exists(dstPath): + os.makedirs(dstPath) + DirCopyHelper(srcPath, dstPath) + else: + env.Command(dstPath, srcPath, Copy("$TARGET", "$SOURCE")) + if (not os.path.exists(dst)): + os.makedirs(dst) DirCopyHelper(src, dst) # XXX: Hack to support clang static analyzer