mirror of
https://github.com/captn3m0/cosmere-books.git
synced 2024-09-27 19:23:03 +00:00
27 lines
708 B
Bash
Executable File
27 lines
708 B
Bash
Executable File
#!/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
|
|
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
|
|
./dark-one-preview.sh
|
|
elif [[ "$1" == "dark-one" ]]; then
|
|
./dark-one-preview.sh
|
|
else
|
|
bundle exec ruby "$1.rb"
|
|
fi
|
|
|
|
cp -r books /output/
|