#!/bin/bash
## User Define for desktop menu
currentPath=`pwd`
-desktopfile=${HOME}/.local/share/applications/samsung-sdk-ide.desktop
-iconfile=samsung-sdk-ide.ico
-ide_path=NativeIDE
+desktopfile=${HOME}/.local/share/applications/tizen-sdk-ide.desktop
+iconfile=tizen-sdk-ide.ico
+ide_path=TizenIDE
exefile=startup.sh
-comment="The Native IDE of Tizen SDK"
-name="Native IDE"
+comment="The IDE of Tizen SDK"
+name="Tizen IDE"
## Do not modify the followings (Make desktop menu)
TIZEN_SDK_INSTALL_PATH=${INSTALLED_PATH}
ide_tools_path=${ide_resources_path}/tools
ide_icons_path=${ide_resources_path}/icons
-categoryfile=${HOME}/.local/share/desktop-directories/samsung-sdk_menu.directory
+categoryfile=${MENU_DIRECTORY_PATH}
UBUNTU_VER=`awk 'BEGIN {FS="="}; /DISTRIB_RELEASE.*/ {print $2}' /etc/lsb-release`
case ${UBUNTU_VER} in
11.04)
- categories="Samsung Linux Platform;Development"
+ categories="Tizen SDK;Development"
;;
11.10)
- categories="Samsung Linux Platform;Development"
+ categories="Tizen SDK;Development"
;;
*)
- categories="Samsung Linux Platform"
+ categories="Tizen SDK"
;;
esac
gksudo "${TIZEN_SDK_INSTALL_PATH}/temp/samsung_device_setup.sh ${HOME} ${ide_tools_path} ${samsung_udev}"
fi
+exit 0
#!/bin/sh
## Register .desktop file
-xdg-desktop-menu uninstall samsung-sdk_menu.directory samsung-sdk-ide.desktop
+xdg-desktop-menu uninstall ${MENU_DIRECTORY_NAME} tizen-sdk-ide.desktop
### END Register Menu ###
## Remove auto creating files
-ide_path=NativeIDE
+ide_path=TizenIDE
rm -rf ${INSTALLED_PATH}/${ide_path}/p2
# Remove Tizen Font
@ECHO OFF
-set shortcut_name=Tizen IDE
-set execute_file=NativeIDE.exe
-set icon_file=samsung-sdk-ide.ico
+set shortcut_name="Tizen IDE"
+set execute_file=TizenIDE.exe
+set icon_file=tizen-sdk-ide.ico
set font_file=EcoSansMonoBD_110929.ttf
-set program_path=%INSTALLED_PATH%\NativeIDE
+set program_path=%INSTALLED_PATH%\TizenIDE
set execute_path=%program_path%\%execute_file%
set icon_path=%program_path%\resources\icons
set font_path=%program_path%\resources\fonts
FOR /F "tokens=2* delims= " %%A IN ('reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Programs') DO SET start_menu_programs_path=%%B
echo Setting shortcut...
-wscript.exe "%MAKESHORTCUT_PATH%" /shortcut:"%start_menu_programs_path%\Samsung Linux Platform\%shortcut_name%" /target:"%execute_path%\%icon_file%" /icon:"%icon_path%"
+wscript.exe "%MAKESHORTCUT_PATH%" /shortcut:"%start_menu_programs_path%\%MENU_DIRECTORY%\%shortcut_name%" /target:"%execute_path%\%icon_file%" /icon:"%icon_path%"
echo Make shortcut success.
:: Install Tizen font
@echo off
-set shortcut_name=Native IDE
+set shortcut_name="Tizen IDE"
:: delims is a TAB followed by a space
FOR /F "tokens=2* delims= " %%A IN ('reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Programs') DO SET start_menu_programs_path=%%B
-rm -r -f "%start_menu_programs_path%\Samsung Linux Platform\%shortcut_name%.lnk"
+rm -r -f "%start_menu_programs_path%\%MENU_DIRECTORY%\%shortcut_name%.lnk"
:: Uninstall Tizen font
:: del %HOMEDRIVE%\Windows\Fonts\unnamed.ttf