2017-09-16 16:22:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-09-16 17:45:59 +00:00
|
|
|
rm -rf html
|
2017-09-16 16:22:31 +00:00
|
|
|
mkdir -p html
|
|
|
|
cd html
|
2017-09-16 17:45:59 +00:00
|
|
|
wget --convert-links --mirror https://landing.google.com/sre/book/
|
2017-09-16 16:22:31 +00:00
|
|
|
|
|
|
|
mv landing.google.com/sre/book/* .
|
|
|
|
rm -rf landing.google.com
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
bundle install
|
|
|
|
ruby generate.rb
|
2017-09-16 17:45:59 +00:00
|
|
|
|
|
|
|
cd html/chapters
|
|
|
|
|
2018-01-01 13:39:19 +00:00
|
|
|
pandoc -f html+smart -t epub+smart -o ../../google-sre.epub --epub-metadata=../../metadata.xml --epub-cover-image=../../cover.jpg sre.html
|
2017-09-16 17:45:59 +00:00
|
|
|
ebook-convert google-sre.epub google-sre.mobi
|