From 47099dc1357dd338c402e3edeb2502d9b209eddb Mon Sep 17 00:00:00 2001 From: jihye kim Date: Tue, 12 Feb 2013 12:36:38 +0900 Subject: [PATCH] [Title] emulator-manager : modify install script [Desc.] fix bug (making shortcut menu error in install script) [Issue] N/A --- package/emulator-manager.install.linux | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/package/emulator-manager.install.linux b/package/emulator-manager.install.linux index 91babda..1d5a414 100755 --- a/package/emulator-manager.install.linux +++ b/package/emulator-manager.install.linux @@ -1,25 +1,18 @@ #!/bin/sh -## make $USERNAME.lock file -tizen_vms_path="${HOME}/tizen-sdk-data" -echo $tizen_vms_path> $TIZEN_SDK_INSTALL_PATH/tools/emulator/bin/.$USER.lock - ## User Define for desktop menu -currentPath=`pwd` desktoppath=~/.local/share/applications -iconpath=~/.local/share/icons ## Do not modify the followings (Make desktop menu) -TIZEN_SDK_INSTALL_PATH=`echo $INSTALLED_PATH` +TIZEN_SDK_INSTALL_PATH=${INSTALLED_PATH} if [ -z $TIZEN_SDK_INSTALL_PATH ] then -# echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log exit 2; fi ## make $USERNAME.lock file tizen_vms_path="${HOME}/tizen-sdk-data" -echo $tizen_vms_path> $TIZEN_SDK_INSTALL_PATH/tools/emulator/bin/.$USER.lock +echo $tizen_vms_path> "${TIZEN_SDK_INSTALL_PATH}/tools/emulator/bin/.$USER.lock" ## em shortcut em_desktopfile=$desktoppath/tizen-sdk-em.desktop @@ -29,20 +22,17 @@ em_exefile=tools/emulator/bin/emulator-manager em_exepath=$TIZEN_SDK_INSTALL_PATH/$em_exefile em_comment="Emulator manager of Tizen SDK is a tool which controls Virtual Machines." em_name="Emulator Manager" -mkdir -p $iconpath -if test -e $TIZEN_SDK_INSTALL_PATH/$em_iconpath/$em_iconfile -then - cp -f $TIZEN_SDK_INSTALL_PATH/$em_iconpath/$em_iconfile $iconpath/$em_iconfile -else - echo "$em_iconfile does not exist!!" - exit 1 -fi - -${MAKESHORTCUT_PATH} \ +if [ -e ${MAKESHORTCUT_PATH} ] +then + ${MAKESHORTCUT_PATH} \ -f "$em_desktopfile" \ -e "$em_exepath" \ - -i "$iconpath/$em_iconfile" \ + -i "$em_iconpath/$em_iconfile" \ -n "$em_name" \ -c "$em_comment" +else + echo ${MAKESHORTCUT_PATH} does not exist +fi +exit 0 -- 2.7.4