From: dyamy-lee Date: Wed, 3 Apr 2024 05:45:51 +0000 (+0900) Subject: change the src,dst file path for only tts X-Git-Tag: accepted/tizen/unified/toolchain/20240610.173109~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0f429025bf53b83f61b49a2bc0cf5240797a723;p=platform%2Fcore%2Fuifw%2Ftts.git change the src,dst file path for only tts /usr/data/.voice directroy can be used with other voice framework. So, only mv tts directory. And, following that change, rename it. Change-Id: I28233bd5811e3403a92ee4421d217381f382267c --- diff --git a/script/migration/tts.sh b/script/migration/tts.sh index 5ae1e0f9..f951adaf 100644 --- a/script/migration/tts.sh +++ b/script/migration/tts.sh @@ -12,9 +12,10 @@ source "$UPDATE_EXEC_PATH/common/error_handle.inc" function tts_migration() { log I "TTS Migration config files" - local SRC_PATH=$(get_old_rw_path)/usr/data/.voice/ - local DST_PATH=$(get_rw_path)/usr/data/.voice/ - local SRC_CONF_PATH=$(get_old_rw_path)/usr/home/owner/share/.voice/tts-config.xml + local SRC_PATH=$(get_old_rw_path)/usr/data/.voice/tts + local DST_PATH=$(get_rw_path)/usr/data/.voice/tts + local SRC_CONF_PATH=$(get_old_rw_path)/usr/data/.voice/tts-config.xml + local DST_CONF_PATH=$(get_rw_path)/usr/data/.voice/ if [ ! -e $DST_PATH ]; then log I "TTS Migration set destination path" @@ -28,18 +29,19 @@ function tts_migration() { chown -R ui_fw:users $(get_rw_path)/usr/data/.voice fi - if [ -e $SRC_CONF_PATH ]; then + if [ -e $SRC_PREV_CONF_PATH ]; then log I "TTS Migration 7.0 only START" - SRC_PREV_PATH=$(get_old_rw_path)/usr/home/owner/share/.voice/tts/1.0/engine-info - DST_ENGINE_PATH=$(get_rw_path)/usr/data/.voice/tts/engine-info + SRC_PREV_ENGINE_PATH=$(get_old_rw_path)/usr/home/owner/share/.voice/tts/1.0/engine-info + DST_NEW_ENGINE_PATH=$(get_rw_path)/usr/data/.voice/tts/engine-info + SRC_PREV_CONF_PATH=$(get_old_rw_path)/usr/home/owner/share/.voice/tts-config.xml - if [ ! -e $SRC_PREV_PATH ]; then + if [ ! -e $SRC_PREV_ENGINE_PATH ]; then log E "TTS Migration ERROR : No orignal Data" return fi - mig_copy $SRC_PREV_PATH $DST_ENGINE_PATH || error_handle "default_data" $LINENO - mig_copy $SRC_CONF_PATH $DST_PATH || error_handle "default_data" $LINENO + mig_copy $SRC_PREV_ENGINE_PATH $DST_NEW_ENGINE_PATH || error_handle "default_data" $LINENO + mig_copy $SRC_PREV_CONF_PATH $DST_CONF_PATH || error_handle "default_data" $LINENO chown -R ui_fw:users $(get_rw_path)/usr/data/.voice chmod 664 $(get_rw_path)/usr/data/.voice/tts-config.xml @@ -54,6 +56,7 @@ function tts_migration() { fi mig_copy $SRC_PATH $DST_PATH || error_handle "default_data" $LINENO + mig_copy $SRC_CONF_PATH $DST_CONF_PATH || error_handle "default_data" $LINENO log I "TTS Migration after 8.0 END" fi