aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-10-10 14:45:26 -0700
committerGanesh Viswanathan <dev@genotrance.com>2019-10-10 14:45:26 -0700
commit3e9dc2fb0fd6257fd86897c1b13f10ed2a5279b4 (patch)
treed681852f7d2ef73b14ee5174f8f8c84dd3d3858b
parentff8c7330cd3d48dce1526b01bd78b19767d3857b (diff)
downloadnimterop-0.2.0.tar.gz
nimterop-0.2.0.zip
Fix std fallback and docs publishv0.2.0
-rw-r--r--nimterop/build.nim4
-rw-r--r--nimterop/docs.nim2
2 files changed, 3 insertions, 3 deletions
diff --git a/nimterop/build.nim b/nimterop/build.nim
index 943e91e..81e7445 100644
--- a/nimterop/build.nim
+++ b/nimterop/build.nim
@@ -922,7 +922,7 @@ macro getHeader*(header: static[string], giturl: static[string] = "", dlurl: sta
when `nameStd`: getStdLibPath(`lname`) else: ""
`path`* =
- when stdPath.len != 0:
+ when stdPath.len != 0 and stdLPath.len != 0:
stdPath
elif `nameGit`:
getGitPath(`header`, `giturl`, `outdir`, `version`)
@@ -931,7 +931,7 @@ macro getHeader*(header: static[string], giturl: static[string] = "", dlurl: sta
else:
getLocalPath(`header`, `outdir`)
- when stdPath.len == 0 and declared(`preBuild`):
+ when `path` != stdPath and declared(`preBuild`):
static:
`preBuild`(`outdir`, `path`)
diff --git a/nimterop/docs.nim b/nimterop/docs.nim
index 57c806b..17089ec 100644
--- a/nimterop/docs.nim
+++ b/nimterop/docs.nim
@@ -79,5 +79,5 @@ proc buildDocs*(files: openArray[string], path: string, baseDir = getProjectPath
for i in 0 .. paramCount():
if paramStr(i) == "--publish":
- echo execAction(&"ghp-import --no-jekyll -fp {path}")
+ echo execAction(&"cd {path} && ghp-import --no-jekyll -fp {path}")
break \ No newline at end of file