From: munkyu.im Date: Thu, 13 Dec 2012 04:15:23 +0000 (+0900) Subject: sdb: add some information to launcher script X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1288 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14cf386486f598dccb04ed9f4e5b516b6f7908b8;p=sdk%2Femulator%2Fqemu.git sdb: add some information to launcher script Signed-off-by: munkyu.im --- diff --git a/tizen/src/sdbscript b/tizen/src/sdbscript index c26d52f408..6b5132a2f7 100755 --- a/tizen/src/sdbscript +++ b/tizen/src/sdbscript @@ -1,8 +1,14 @@ #!/bin/sh -TITLE=$1 -osascript > /dev/null << END -tell application "Terminal" -do script "`pwd`/../../sdb -s $TITLE shell" -set custom title of first window to "$TITLE" -end tell +if [ "$1" == "" ]; +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" + do script "`pwd`/../../sdb -s $TITLE shell" + set custom title of first window to "$TITLE" + end tell END +fi