addyosmani / addyosmani/backbone-fundamentals
Making a Windows build
- Linguagem predominante
- Rich Text Format
- Estrelas
- 9.2k
- Forks
- 1.4k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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](http://documentup.com/arturadib/shelljs) for cross-plattform compatibility.
However, it seems I've hit a roadblock on the first command:
``` bash
awk 'FNR==1{print ""}{print}' chapters/*.md > backbone-fundamentals.md
```
By the way, I'm using [scoop](http://scoop.sh) 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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.