RTSDK: Support Multi-byte characters in install path.
authorjooyoul_lee <jy.exe.lee@samsung.com>
Wed, 22 Feb 2017 08:02:48 +0000 (17:02 +0900)
committerjooyoul_lee <jy.exe.lee@samsung.com>
Wed, 22 Feb 2017 08:02:48 +0000 (17:02 +0900)
- Modified Studio executable file and install script file for
support Multi-byte characters in install path

Change-Id: I9f1fd7b4f25d0dffa8d655d5a14c26f1f74278ff
Signed-off-by: jooyoul_lee <jy.exe.lee@samsung.com>
package/addingFiles/TizenStudioRT.sh
package/rt-ide-product.install.linux

index 193d621..d4aee2c 100755 (executable)
@@ -1,7 +1,16 @@
 #!/bin/sh
 start_path=`pwd`
 
-IDE_PATH=`dirname "$(readlink -f $0)"`
+simplename="${0##*/}"
+if [ "${simplename}" = "$0" ]
+then
+  realpath="${PWD}/$0"
+else
+  realpath=$(cd "${0%/*}" && echo "$PWD")
+fi
+
+# set IDE path
+IDE_PATH=${realpath}
 
 ## set no_proxy environment
 if [ "x${no_proxy}" = "x" ]
@@ -38,13 +47,13 @@ if [ "${id}" = "ubuntu" ]
 then
     case "${version}" in
         11.04|11.10|12.04|12.10|13.04|13.10|14.04)
-            UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ./eclipse ${eclipse_options}
+            UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 "${IDE_PATH}/eclipse" ${eclipse_options}
             ;;
         *)
-            ./eclipse ${eclipse_options}
+            "${IDE_PATH}/eclipse" ${eclipse_options}
     esac
 else
-    ./eclipse ${eclipse_options}
+    "${IDE_PATH}/eclipse" ${eclipse_options}
 fi
 
 cd "${start_path}"
index 2c9c8c2..4da7ffb 100644 (file)
@@ -29,7 +29,7 @@ touch "${TIZEN_SDK_INSTALL_PATH}/${ide_path}/init"
 modify_ide_version()
 {
     echo "Modify ide version..."
-    tizen_sdk_version=`cat ${INSTALLED_PATH}/sdk.version | grep 'TIZEN_SDK_VERSION' | sed -e "s;.*TIZEN_SDK_VERSION=\(.*\);\1;g"`
+    tizen_sdk_version=`cat "${INSTALLED_PATH}/sdk.version" | grep 'TIZEN_SDK_VERSION' | sed -e "s;.*TIZEN_SDK_VERSION=\(.*\);\1;g"`
     product_version="${tizen_sdk_version}"
 
     ide_path="${INSTALLED_PATH}/ide"