diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-07-23 18:00:18 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:58:10 +0300 |
commit | 39404318ff4e854a3cb6ffb38dcbcd0f6243e6aa (patch) | |
tree | 99816e67f9b765636f65891ca16668515bd4e23a /sound | |
parent | a9cbd5e17b7df60d17e6d9321fa67f0956e1e6b8 (diff) |
Changing script to save text sounds in json files intead of in a zip file with jsons.
Diffstat (limited to 'sound')
-rwxr-xr-x | sound/tts/generate_sound_localizations.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/tts/generate_sound_localizations.sh b/sound/tts/generate_sound_localizations.sh index 3d7e2aa3b9..f62fe5b181 100755 --- a/sound/tts/generate_sound_localizations.sh +++ b/sound/tts/generate_sound_localizations.sh @@ -20,7 +20,8 @@ mkdir $SOUND_TMP_DIR/json python $MY_PATH/languages_dir.py $MY_PATH/languages.txt $SOUND_TMP_DIR/json/ $MY_PATH/../../tools/twine/twine --format jquery generate-all-string-files $MY_PATH/sound.txt $SOUND_TMP_DIR/json -cd $SOUND_TMP_DIR/json/ -zip -r sound_strings.zip . -mv $SOUND_TMP_DIR/json/sound_strings.zip $MY_PATH/../../data/ -cd $MY_PATH +readonly SOUND_OUTPUT_DIR=$MY_PATH/../../data/sound-strings/ +if [ ! -d $SOUND_OUTPUT_DIR ]; then + mkdir $SOUND_OUTPUT_DIR +fi +cp -R $SOUND_TMP_DIR/json/ $SOUND_OUTPUT_DIR |