backbone-fundamentals
backbone-fundamentals copied to clipboard
Making a Windows build
Hi,
I'm trying to create a successful build (all formats: html, epub, rtf, pdf and mobi) on Windows without having to have Cygwin installed. I'm also looking forward to rewriting the Makefile
into a Makefile.js
using shelljs for cross-plattform compatibility.
However, it seems I've hit a roadblock on the first command:
awk 'FNR==1{print ""}{print}' chapters/*.md > backbone-fundamentals.md
By the way, I'm using scoop to get the necessary command-line utilities (awk, pandoc) but you can get and install those on your own as standalone commands and add them to your PATH. Again, I'm avoiding Cygwin.
The problem seems to be that the awk
command is encoding the result file (backbone-fundamentals.md
) in whatever the default encoding for PowerShell is, not UTF-8. I've already tried several things to try and change the encoding, but somehow I keep getting odd characters.
If someone could explain to me exactly what that awk
line does I would appreciate it.
It seems to me like all it does is concatenate the markdown into a single file. And if that is the case maybe we can use a different command or utility to accomplish the same?
Looking forward to the feedback.