bugfixes for unicode; xmlparser; htmlparser; scanner
This commit is contained in:
parent
64da2f1681
commit
6bc16904ed
18 changed files with 226 additions and 74 deletions
|
|
@ -290,7 +290,8 @@ proc writeFile(filename, content, newline: string) =
|
|||
quit("Cannot open for writing: " & filename)
|
||||
|
||||
proc srcdist(c: var TConfigData) =
|
||||
for x in walkFiles("lib/*.h"): CopyFile("build" / extractFilename(x), x)
|
||||
for x in walkFiles("lib/*.h"):
|
||||
CopyFile(dest="build" / extractFilename(x), source=x)
|
||||
for osA in 1..c.oses.len:
|
||||
for cpuA in 1..c.cpus.len:
|
||||
var dir = buildDir(osA, cpuA)
|
||||
|
|
@ -307,7 +308,7 @@ proc srcdist(c: var TConfigData) =
|
|||
readCFiles(c, osA, cpuA)
|
||||
for i in 0 .. c.cfiles[osA][cpuA].len-1:
|
||||
var dest = dir / extractFilename(c.cfiles[osA][cpuA][i])
|
||||
CopyFile(dest, c.cfiles[osA][cpuA][i])
|
||||
CopyFile(dest=dest, source=c.cfiles[osA][cpuA][i])
|
||||
c.cfiles[osA][cpuA][i] = dest
|
||||
# second pass: remove duplicate files
|
||||
for osA in countdown(c.oses.len, 1):
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ proc buildPdfDoc(c: var TConfigData, destPath: string) =
|
|||
Exec("pdflatex " & changeFileExt(d, "tex"))
|
||||
# delete all the crappy temporary files:
|
||||
var pdf = splitFile(d).name & ".pdf"
|
||||
moveFile(destPath / pdf, pdf)
|
||||
moveFile(dest=destPath / pdf, source=pdf)
|
||||
removeFile(changeFileExt(pdf, "aux"))
|
||||
if existsFile(changeFileExt(pdf, "toc")):
|
||||
removeFile(changeFileExt(pdf, "toc"))
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ proc walker(dir: string) =
|
|||
for kind, path in walkDir(dir):
|
||||
case kind
|
||||
of pcFile:
|
||||
moveFile(newName(path), path)
|
||||
moveFile(dest=newName(path), source=path)
|
||||
# test if installation still works:
|
||||
if execShellCmd(r"nimrod c --force_build tests\tlastmod") == 0:
|
||||
echo "Optional: ", path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue