2018-10-13 18:52:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Generate all the books
|
|
|
|
mkdir -p books
|
|
|
|
|
|
|
|
if [ -z "$1" ]
|
|
|
|
then
|
|
|
|
bundle exec ruby edgedancer-reread.rb
|
|
|
|
bundle exec ruby oathbringer.rb
|
|
|
|
bundle exec ruby oathbringer-reread.rb
|
|
|
|
bundle exec ruby wok-prime.rb
|
|
|
|
bundle exec ruby wok-reread.rb
|
|
|
|
bundle exec ruby wor-reread.rb
|
|
|
|
bundle exec ruby skyward.rb
|
2018-11-07 18:48:46 +00:00
|
|
|
pandoc -t epub https://brandonsanderson.com/defending-elysium/ \
|
|
|
|
--output=books/defending-elysium.epub \
|
|
|
|
--epub-cover-image=covers/defending-elysium.jpg \
|
|
|
|
--epub-metadata=metadata/defending-elysium.xml
|
2018-10-13 18:52:51 +00:00
|
|
|
else
|
|
|
|
bundle exec ruby "$1.rb"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp -r books /output/
|