[Title] add environment value CATEGORY
authormunkyu.im <munkyu.im@samsung.com>
Thu, 1 Dec 2011 08:37:12 +0000 (17:37 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Thu, 1 Dec 2011 08:37:12 +0000 (17:37 +0900)
[Type] Enhancement
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/package/install
tizen/package/install.bat
tizen/package/remove.bat

index 9768523..0082546 100755 (executable)
@@ -4,21 +4,6 @@
 currentPath=`pwd`
 desktoppath=~/.local/share/applications
 
-UBUNTU_VER=`awk 'BEGIN {FS="="}; /DISTRIB_RELEASE.*/ {print $2}' /etc/lsb-release`
-case ${UBUNTU_VER} in
-       11.04)
-               categories="Tizen SDK;Development"
-               ;;
-       11.10)
-               categories="Tizen SDK;Development"
-               ;;
-       *)
-               categories="Tizen SDK"
-               ;;
-esac
-
-
-
 ## vtm shortcut
 vtm_desktopfile=$desktoppath/tizen-sdk-vtm.desktop
 vtm_iconfile=vtm.ico
@@ -61,7 +46,7 @@ Type=Application
 Terminal=false
 Comment=$vtm_comment
 Name=$vtm_name
-Categories=$categories
+Categories=$CATEGORY
 StartupNotify=true
 NoDisplay=false
 END
index 9c2ef70..2f8d654 100644 (file)
@@ -13,5 +13,5 @@ set desktop_menu_icon_path=%INSTALLED_PATH%\%icon_path%
 echo Program path : %program_path%\r
 echo Desktop menu icon path : %desktop_menu_icon_path%\r
 echo Setting shortcut...\r
-wscript.exe %MAKESHORTCUT_PATH% /shortcut:"%start_menu_programs_path%\Tizen SDK\%vtm_shortcut_name%" /target:"%program_path%\%vtm_execute_file%" /icon:"%desktop_menu_icon_path%\%vtm_icon_file%"\r
+wscript.exe %MAKESHORTCUT_PATH% /shortcut:"%start_menu_programs_path%\%CATEGORY%\%vtm_shortcut_name%" /target:"%program_path%\%vtm_execute_file%" /icon:"%desktop_menu_icon_path%\%vtm_icon_file%"\r
 echo COMPLETE\r
index 2554d68..0e9ebea 100644 (file)
@@ -3,4 +3,4 @@ set vtm_shortcut_name=Virtual Target Manager
 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\r
 ECHO Start menu path=%start_menu_programs_path%\r
 \r
-del "%start_menu_programs_path%\Tizen SDK\%vtm_shortcut_name%.lnk"\r
+del "%start_menu_programs_path%\%CATEGORY%\%vtm_shortcut_name%.lnk"\r