Created
February 7, 2014 03:36
-
-
Save jerrykan/8857054 to your computer and use it in GitHub Desktop.
Wrapper script for https://github.com/wcooley/calibre_recipes.git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RECIPE="$(dirname $0)/lwn_weekly.recipe" | |
OUTPUT="/tmp/LWN.net Weekly Edition [$(date +'%a, %d %b %Y')].mobi" | |
if [[ -z $LWN_USERNAME ]]; then | |
read -p "LWN Username: " LWN_USERNAME | |
fi | |
if [[ -z $LWN_PASSWORD ]]; then | |
read -s -p "LWN Password: " LWN_PASSWORD | |
fi | |
ebook-convert "$RECIPE" "$OUTPUT" \ | |
--series "LWN.net" \ | |
--username "$LWN_USERNAME" \ | |
--password "$LWN_PASSWORD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment