aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-07-13 12:51:27 -0500
committerGanesh Viswanathan <dev@genotrance.com>2018-07-13 12:51:27 -0500
commit2cfad92753025f5be7323af7e4fa58e3633e2eff (patch)
tree619d31c3e9816e743f97f295c8873613cda14935 /src
parent9e0eb256857b9dce6895b3dcb0e3f6a9dd2b5def (diff)
downloadnimgen-2cfad92753025f5be7323af7e4fa58e3633e2eff.tar.gz
nimgen-2cfad92753025f5be7323af7e4fa58e3633e2eff.zip
Fix file creation issue
Diffstat (limited to 'src')
-rw-r--r--src/nimgen/runcfg.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nimgen/runcfg.nim b/src/nimgen/runcfg.nim
index a641150..32146b8 100644
--- a/src/nimgen/runcfg.nim
+++ b/src/nimgen/runcfg.nim
@@ -55,6 +55,10 @@ proc runFile*(file: string, cfgin: OrderedTableRef = newOrderedTable[string, str
echo "Creating " & file
createDir(file.splitPath().head)
writeFile(file, cfg[act])
+ if file in gExcludes:
+ gExcludes.delete(gExcludes.find(file))
+ sfile = search(file)
+ gDoneRecursive.add(sfile)
elif action in @["prepend", "append", "replace", "comment",
"rename", "compile", "dynlib", "pragma",
"pipe"] and sfile != "":