1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh -u die_usage() { echo "usage: $0 <rst file> <html file>"; exit 1; } [ $# -eq 2 ] || die_usage from="${1}" to="${2}" [ -r "${from}" ] || die_usage TITLE='Automatically Generated Overlay of R packages' rst2html.py --title "${TITLE}" --date "${from}" "${to}"