--- /dev/null
+#!/bin/sh
+
+#------------------------------------------#
+# Resourced patch for upgrade (2.4 -> 3.0) #
+#------------------------------------------#
+
+# Macro
+VOICE_DIR_24=/opt/usr/data/voice
+TTS_CONF_DIR_24=/opt/home/app/.voice
+TTS_CONF_FILE_24=$TTS_CONF_DIR_24/tts-config.xml
+
+VOICE_DIR_30=/opt/usr/home/owner/share/.voice
+TTS_CONF_FILE_30=$VOICE_DIR_30/tts-config.xml
+
+# Make new directories
+mkdir -p $VOICE_DIR_30
+chown owner:users $VOICE_DIR_30
+chsmack -a User::App::Shared $VOICE_DIR_30
+
+
+# Move
+mv $VOICE_DIR_24/tts/ $VOICE_DIR_30/
+chown -R owner:users $VOICE_DIR_30/
+chsmack -ra User::App::Shared $VOICE_DIR_30/
+
+mv $TTS_CONF_FILE_24 $TTS_CONF_FILE_30
+chown owner:users $TTS_CONF_FILE_30
+chsmack -a User::App::Shared $TTS_CONF_FILE_30
+
+
+# Remove directories
+rm -rf $VOICE_DIR_24/tts
INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-server.conf DESTINATION /etc/dbus-1/system.d)
+## Upgrade script ##
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts_upgrade_24to30.sh DESTINATION ${TZ_SYS_RO_SHARE}/upgrade/scripts)
+
## Dbus service ##
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/services)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsnotiserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/services)
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/lib*.so
+%{TZ_SYS_RO_SHARE}/upgrade/scripts/tts_upgrade_24to30.sh
%{TZ_SYS_RO_SHARE}/voice/tts/1.0/tts-config.xml
%{TZ_SYS_RO_SHARE}/dbus-1/services/org.tizen.voice*
%{TZ_SYS_RO_SHARE}/voice/test/tts-test