Skip to content

Instantly share code, notes, and snippets.

@tbelaire
Created March 5, 2014 21:46
Show Gist options
  • Save tbelaire/9377305 to your computer and use it in GitHub Desktop.
Save tbelaire/9377305 to your computer and use it in GitHub Desktop.
#!/bin/bash -xe
template_dir=~/khan/template_captions
tmp_dir=~/khan/tmp/captions
webapp=~/khan/webapp
locales="en tr"
for l in $locales; do
mkdir -p $tmp_dir/incoming/$l;
cp $template_dir/incoming/$l/*.srt $tmp_dir/incoming/$l/
done
cd $webapp
$webapp/tools/upload_captions_to_production.py \
$tmp_dir/incoming $tmp_dir/published
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment