From f11295a02a99e0ad2307ab65264a305505192be8 Mon Sep 17 00:00:00 2001 From: Taeyoung Son Date: Thu, 5 Jan 2012 13:45:51 +0900 Subject: [PATCH] [Title] Modify install script for linux [Type] Feature [Module] Sub [Priority] Minor [CQ#] [Redmine#] [Problem] [Cause] [Solution] --- packager/linux/install.sh | 74 ++++++++++++----------------------------------- 1 file changed, 19 insertions(+), 55 deletions(-) diff --git a/packager/linux/install.sh b/packager/linux/install.sh index 98ac82c..a6ae916 100755 --- a/packager/linux/install.sh +++ b/packager/linux/install.sh @@ -15,49 +15,12 @@ ide_resources_path=${TIZEN_SDK_INSTALL_PATH}/${ide_path}/resources ide_tools_path=${ide_resources_path}/tools ide_icons_path=${ide_resources_path}/icons ide_fonts_path=${ide_resources_path}/fonts - categoryfile=${MENU_DIRECTORY_PATH} -UBUNTU_VER=`awk 'BEGIN {FS="="}; /DISTRIB_RELEASE.*/ {print $2}' /etc/lsb-release` -case ${UBUNTU_VER} in - 11.04) - categories="${CATEGORY};Development" - ;; - 11.10) - categories="${CATEGORY};Development" - ;; - *) - categories="${CATEGORY}" - ;; -esac - chmod 755 ${exepath} -${MAKESHORTCUT_PATH} -f ${desktopfile} -e ${exepath} -i ${ide_icons_path}/${iconfile} -n ${name} -c ${comment} -## Create .desktop file -#mkdir -p ${HOME}/.local/share/applications -#cat > $desktopfile << END -#[Desktop Entry] -#Encoding=UTF-8 -#Value=1.0 -#Type=Application -#Terminal=false -#Comment=$comment -#Name=$name -#Categories=$categories -#StartupNotify=true -#NoDisplay=false -#END -# -#cat >> $desktopfile << END -#Icon=$ide_icons_path/$iconfile -#Exec=$exepath -#END - -### Register .desktop file -#xdg-desktop-menu install $categoryfile $desktopfile - -##### END Register Menu ##### +## Regist start menu +${MAKESHORTCUT_PATH} -f "${desktopfile}" -e "${exepath}" -i "${ide_icons_path}/${iconfile}" -n "${name}" -c "${comment}" ## webkit-lib uncompression webkit_lib_linux_path=SDK/lib/webkit-lib @@ -65,6 +28,23 @@ tar xf $TIZEN_SDK_INSTALL_PATH/$webkit_lib_linux_path/webkit-lib.tar.gz -C $TIZE rm -rf $TIZEN_SDK_INSTALL_PATH/$webkit_lib_linux_path/webkit-lib.tar.gz ##### End webkit-lib uncompression ##### + +## Set sbi, sdb's environment path +s=`cat ${HOME}/.bashrc | grep -n "## Tizen SDK configuration" | cut -f1 -d":"` + +if [ "x${s}" = "x" ] ; then + cat >> ${HOME}/.bashrc << END +## Tizen SDK configuration +# This is generated by Tizen SDK. Please do not modify by yourself. +# Set sbi, sdb environment path +export PATH=\$PATH:${TIZEN_SDK_INSTALL_PATH}/SDK/sdb:${TIZEN_SDK_INSTALL_PATH}/SDK/build-system/bin +## End Tizen SDK configuration +END + +fi + +source ${HOME}/.bashrc + ##### Install Tizen Font ##### # # copy font file to user's space : FIXME : have to be removed later @@ -86,20 +66,4 @@ rm -rf $TIZEN_SDK_INSTALL_PATH/$webkit_lib_linux_path/webkit-lib.tar.gz # fi #fi -## Set sbi, sdb's environment path -s=`cat ${HOME}/.bashrc | grep -n "## Tizen SDK configuration" | cut -f1 -d":"` - -if [ "x${s}" = "x" ] ; then - cat >> ${HOME}/.bashrc << END -## Tizen SDK configuration -# This is generated by Tizen SDK. Please do not modify by yourself. -# Set sbi, sdb environment path -export PATH=\$PATH:${TIZEN_SDK_INSTALL_PATH}/SDK/sdb:${TIZEN_SDK_INSTALL_PATH}/SDK/build-system/bin -## End Tizen SDK configuration -END - -fi - -source ${HOME}/.bashrc - exit 0 -- 2.7.4