perf-book
perf-book copied to clipboard
Simplify build instructions on Windows
Below change will make the build instructions same as Linux. We just have to run cmd before running them.
@dendibakh
Actually, you're right. I like to use powershell on windows (and maybe some other folks as well), so let's keep powershell commands as well.
My suggestion:
# Windows cmd prompt
python export_book.py && pdflatex book.tex && bibtex book && pdflatex book.tex && pdflatex book.tex
# Windows powershell
function Run-Block-With-Error($block) {
$ErrorActionPreference="Stop"
Invoke-Command -ScriptBlock $block
}
Run-Block-With-Error {python.exe export_book.py; pdflatex book.tex; bibtex book; pdflatex book.tex; pdflatex book.tex}
And sorry for the delay
Fixed by https://github.com/dendibakh/perf-book/commit/41055d29168b80646d7327c51a3ef8738d83f5e1