blob: 3af40a201e312938106149a7f7f754fe559ac7e6 (
plain) (
tree)
|
|
#!/bin/sh
. bin/func
set -xe
src_files="$(__list_files ${src_dir})"
dirs="${media_dir} \
${src_dir} \
${tmp_dir} \
${out_dir}"
# Ensure directories exist.
for dir in ${dirs}; do
[ ! -d "${dir}" ] && mkdir "${dir}"
done
# Generate output files from sources.
for src_file in ${src_files}; do
__handle "${src_file}"
done
|