3 # Copy SVG files for the specified book(s) to a directory structure that's
4 # ready to be pushed to the public website.
10 # list-bookcodes-by-series.sh gs | xargs copy-svg.sh
12 if [ ! -d "$AONDIR" ]; then
13 >&2 echo "Please set the AONDIR environment variable"
18 if [ "$AONDIR" -ef "$CURR_DIR" ]; then
19 >&2 echo "Current directory is the same as AONDIR: giving up"
25 row=( $($AONDIR/common/scripts/list-book-info.sh $book) )
30 source_dir="$AONDIR/$lang/svg/$series"
31 output_dir="$CURR_DIR/$lang/svg/$series"
32 mkdir -p "$output_dir"
33 cp -av "$source_dir/$book.svgz" "$output_dir"