Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzermann17 committed Apr 18, 2016
2 parents a802497 + b3c0198 commit e8dba03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ Get a copy of the markdown contents of the book by cloning https://github.com/Pe
grep -o "<a href=\"\./[^\"]*" index.html | sed -r "s/<a href=\"\.\/(.*).html/\1/" | xargs -I {} pandoc -o {}.tex {}.md
```

Or alternatively, if you only want to convert recently changed files, find a particular recent commit number, and copy it place of "MD5HASH" here, and run:

```
git diff --name-only MD5HASH HEAD
```

That will give a list of recently changed files. You can then copy them into a working directory and convert as follows:

``` shell
ls -a1 *.md | xargs basename -s .md | xargs -I {} pandoc -o {}.tex {}.md
```

**To build the book:**

Copy the tex files you generated in the last step into the relevant
Expand Down

0 comments on commit e8dba03

Please sign in to comment.