Fix typo
[project-aon.git] / common / scripts / copy-all-formats.sh
1 #!/usr/bin/env bash
2 #
3 # Copy all formats for the specified book(s) to a directory structure that's
4 # ready to be pushed to the public website.
5 #
6 # Examples:
7 #
8 #     copy-all-formats.sh 05sots
9 #
10 #     list-bookcodes-by-series.sh gs | xargs copy-all-formats.sh
11
12 if [ ! -d "$AONDIR" ]; then
13     >&2 echo "Please set the AONDIR environment variable"
14     exit 1
15 fi
16 BASE_DIR="$AONDIR/common/scripts"
17
18 "$BASE_DIR/copy-xhtml.sh" "$@"
19 "$BASE_DIR/copy-svg.sh" "$@"
20 "$BASE_DIR/copy-ebooks.sh" "$@"