sdb: add some information to launcher script
authormunkyu.im <munkyu.im@samsung.com>
Thu, 13 Dec 2012 04:15:23 +0000 (13:15 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Thu, 13 Dec 2012 04:15:23 +0000 (13:15 +0900)
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
tizen/src/sdbscript

index c26d52f4083b334aad67c450409ecb4db4dca3cb..6b5132a2f7a8161e62d7ae2c6ba5cae33c274c74 100755 (executable)
@@ -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