mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-26 14:46:05 +00:00
Fix heredoc in sub dir
Also change log to use absolute path for consistency with the copy/link logs.
This commit is contained in:
parent
1d28294391
commit
5fffe7eda6
3 changed files with 7 additions and 3 deletions
|
@ -1039,8 +1039,9 @@ class SbyTask(SbyConfig):
|
|||
self.makedirs(outdir)
|
||||
|
||||
for dstfile, lines in self.verbatim_files.items():
|
||||
dstfile = self.workdir + "/src/" + dstfile
|
||||
self.log(f"Writing '{dstfile}'.")
|
||||
dstfile = outdir / dstfile
|
||||
self.log(f"Writing '{dstfile.absolute()}'.")
|
||||
dstfile.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
with open(dstfile, "w") as f:
|
||||
for line in lines:
|
||||
|
|
|
@ -15,3 +15,6 @@ script dir/script.ys
|
|||
[files]
|
||||
here/dir ${WORKDIR}/../dir
|
||||
a/b/c.v prv32fmcmp.v
|
||||
|
||||
[file here/doc]
|
||||
log foo
|
||||
|
|
|
@ -7,4 +7,4 @@ else
|
|||
fi
|
||||
python3 $SBY_MAIN -f $SBY_FILE $TASK $flags
|
||||
|
||||
test -e ${WORKDIR}/src/here/dir -a -e ${WORKDIR}/src/a/b/c.v
|
||||
test -e ${WORKDIR}/src/here/dir -a -e ${WORKDIR}/src/a/b/c.v -a -e ${WORKDIR}/src/here/doc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue