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>
#!/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
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");