aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml9
-rw-r--r--src/nimgen/external.nim2
-rw-r--r--src/nimgen/runcfg.nim4
3 files changed, 10 insertions, 5 deletions
diff --git a/appveyor.yml b/appveyor.yml
index bcadda0..6b5f682 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -79,11 +79,12 @@ for:
NIM_URL: https://nim-lang.org/download/nim-0.18.0.tar.xz
NIM_ARCHIVE: nim-0.18.0.tar.xz
NIM_VERSION: nim-0.18.0
+ BASE_DIR: /home/appveyor/projects
install:
- sudo apt -qq update
- sudo apt -qq install --yes python-pygments libssh2-1-dev libgcrypt20-dev libgpg-error-dev
- - cd ~/projects
+ - cd $BASE_DIR
- if [ ! -e $NIM_ARCHIVE ]; then curl -s -o $NIM_ARCHIVE $NIM_URL; fi
- tar xJf $NIM_ARCHIVE
- cd $NIM_VERSION
@@ -91,15 +92,15 @@ for:
- bin/nim c -d:release koch
- ./koch boot -d:release
- ./koch nimble -d:release
- - export PATH=~/projects/$NIM_VERSION/bin:~/.nimble/bin:$PATH
- - cd ~/projects/nimgen
+ - export PATH=$BASE_DIR/$NIM_VERSION/bin:~/.nimble/bin:$PATH
+ - cd $BASE_DIR/nimgen
on_finish:
- zip -r -q buildlogs-lin.zip ~/.nimble/pkgs
- appveyor PushArtifact buildlogs-lin.zip
cache:
- - ~/projects/nim-0.18.0.tar.xz
+ - /home/appveyor/projects/nim-0.18.0.tar.xz
build_script:
- nimble install -y
diff --git a/src/nimgen/external.nim b/src/nimgen/external.nim
index 2c4a12e..79426f6 100644
--- a/src/nimgen/external.nim
+++ b/src/nimgen/external.nim
@@ -147,7 +147,7 @@ proc runCtags*(file: string): string =
fdata = ""
for line in fps.splitLines():
- var spl = line.split(re"\t")
+ var spl = line.split('\t')
if spl.len() > 4:
if spl[0] != "main" and spl[3] != "member":
var fn = ""
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 != "":