[Title] arg parsing in startup script file
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 2 Apr 2012 09:04:42 +0000 (18:04 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 2 Apr 2012 09:04:42 +0000 (18:04 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

dist/linux/emulator-manager.sh

index 3dd893d..c41c66d 100755 (executable)
@@ -5,6 +5,7 @@ TIZEN_SDK_INSTALL_PATH=`echo $tizen_path | cut -f2- -d"="`
 #echo $TIZEN_SDK_INSTALL_PATH
 current_path=`pwd`
 current_emulmgr="$current_path/emulator-manager.jar"
+
 if [ ! -f $TIZEN_SDK_INSTALL_PATH ]
 then
 em_path=`echo $TIZEN_SDK_INSTALL_PATH"/Emulator/bin"`
@@ -12,9 +13,11 @@ else
 em_path="."
 fi
 
+mode=$1
+
 if [ -f $current_emulmgr ]
 then
-java -jar $current_emulmgr $*
+java -jar $current_emulmgr $mode $*
 else
-java -jar $em_path"/emulator-manager.jar" $*
+java -jar $em_path"/emulator-manager.jar" $mode $*
 fi