added utility scripts to make publishing books easier
[project-aon.git] / common / scripts / copy-all-formats.sh
diff --git a/common/scripts/copy-all-formats.sh b/common/scripts/copy-all-formats.sh
new file mode 100755 (executable)
index 0000000..3440ad9
--- /dev/null
@@ -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" "$@"