Tizen 2.1 base
[sdk/emulator/qemu.git] / package / emulator.install.linux
1 #!/bin/sh
2
3 ## User Define for desktop menu
4 currentPath=`pwd`
5 desktoppath=~/.local/share/applications
6
7 ## Do not modify the followings (Make desktop menu)
8 TIZEN_SDK_INSTALL_PATH=`echo $INSTALLED_PATH`
9 if [ -z $TIZEN_SDK_INSTALL_PATH ]
10 then
11 #   echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log
12    exit 2;
13 fi
14
15 iconpath=~/.local/share/icons
16
17 ## vtm shortcut
18 vtm_desktopfile=$desktoppath/tizen-sdk-vtm.desktop
19 vtm_iconfile=vtm.ico
20 vtm_iconpath=Emulator/skins/icons
21 vtm_exefile=Emulator/bin/emulator-manager
22 vtm_exepath=$TIZEN_SDK_INSTALL_PATH/$vtm_exefile
23 vtm_comment="Emulator manager is a tool which can make a cloned emulator image"
24 vtm_name="Emulator Manager"
25 mkdir -p $iconpath
26
27 if test -e $TIZEN_SDK_INSTALL_PATH/$vtm_iconpath/$vtm_iconfile 
28 then 
29         cp -f $TIZEN_SDK_INSTALL_PATH/$vtm_iconpath/$vtm_iconfile $iconpath/$vtm_iconfile
30 else
31         echo "$vtm_iconfile does not exist!!"
32         exit 1
33 fi
34
35 ${MAKESHORTCUT_PATH} \
36                 -f "$vtm_desktopfile" \
37                 -e "$vtm_exepath" \
38                 -i "$iconpath/$vtm_iconfile" \
39                 -n "$vtm_name" \
40                 -c "$vtm_comment"