sdb: change sdb path
authorGiWoong Kim <giwoong.kim@samsung.com>
Thu, 3 Dec 2015 05:14:17 +0000 (14:14 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Thu, 3 Dec 2015 05:14:50 +0000 (14:14 +0900)
because of restructuring directories, relative path of sdb changed.

Change-Id: I6b6a5ebe7eb29a4f2f393a2587e799b7b8905abc
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/scripts/sdbscript
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index f4984d657a4a98ace6a6724e0192b0052107aca5..c6629fb958712db53a483724ec51e73f198e3a95 100755 (executable)
@@ -1,15 +1,15 @@
 #!/bin/sh
-if [ "$1" == "" ];
+if [ "$#" -ne 2 ];
 then
-        echo "There is no emulator name for an argument. \nusage: sdbscript emulator-261xx"
-        exit -1
-else
-    TITLE=$1
-    osascript > /dev/null << END
-    tell application "Terminal"
-        activate
-        do script "\"`pwd`/../../sdb\" -s $TITLE shell"
-        set custom title of first window to "$TITLE"
-    end tell
-END
+        echo "usage: sdbscript \${SDB_PATH} emulator-261xx"
+        exit 1
 fi
+
+TITLE=$2
+osascript > /dev/null << END
+tell application "Terminal"
+activate
+do script "\"$1\" -s $TITLE shell"
+set custom title of first window to "$TITLE"
+end tell
+END
index 034f86762e8970d1c34a8b76c0eff8784fb12aec..cdd6849da2db60c8fc0586baf601ade385f53afc 100755 (executable)
@@ -1827,7 +1827,7 @@ public class EmulatorSkin {
                                        procSdb.command("cmd.exe", "/c", "start", sdbPath, "sdb",
                                                        "-s", "emulator-" + portSdb, "shell");
                                } else if (SwtUtil.isMacPlatform()) {
-                                       procSdb.command("./sdbscript", "emulator-" + portSdb);
+                                       procSdb.command("./sdbscript", sdbPath, "emulator-" + portSdb);
                                        /*
                                         * procSdb.command( "/usr/X11/bin/uxterm", "-T", "emulator-"
                                         * + portSdb, "-e", sdbPath, "shell");