X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fscripts%2Fcopy-all-formats.sh;fp=common%2Fscripts%2Fcopy-all-formats.sh;h=3440ad9fa04b7d5686779c0bed234310ac59499b;hp=0000000000000000000000000000000000000000;hb=c6338dc3c2d3299fdf71c128a7b707d7a69762dd;hpb=2bad6d7f32882c37e0ced713ce64832a519f4b47 diff --git a/common/scripts/copy-all-formats.sh b/common/scripts/copy-all-formats.sh new file mode 100755 index 0000000..3440ad9 --- /dev/null +++ b/common/scripts/copy-all-formats.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# +# Copy all formats for the specified book(s) to a directory structure that's +# ready to be pushed to the public website. +# +# Examples: +# +# copy-all-formats.sh 05sots +# +# list-bookcodes-by-series.sh gs | xargs copy-all-formats.sh + +if [ ! -d "$AONDIR" ]; then + >&2 echo "Please set the AONDIR environment variable" + exit +fi +BASE_DIR="$AONDIR/common/scripts" + +"$BASE_DIR/copy-xhtml.sh" "$@" +"$BASE_DIR/copy-svg.sh" "$@" +"$BASE_DIR/copy-ebooks.sh" "$@"