From a20a8b324212f9cd254bce0c9054726eb84be869 Mon Sep 17 00:00:00 2001 From: "munkyu.im" Date: Fri, 25 Nov 2011 22:01:20 +0900 Subject: [PATCH] [Title] fix package install/remove script [Type] // Commit Type: Feature / Bugfix / Enhancement [Module] // Module Name - (Main / Sub) [Priority] [CQ#] [Redmine#] [Problem] change name SLP -> Tizen [Cause] [Solution] [TestCase] --- SLP/build_pkg.sh | 2 +- SLP/package/install | 36 ++++++++++-------------------------- SLP/package/metapkg.sh | 2 +- SLP/package/pkginfo.manifest | 2 +- SLP/package/remove | 4 ++-- 5 files changed, 15 insertions(+), 31 deletions(-) diff --git a/SLP/build_pkg.sh b/SLP/build_pkg.sh index 382bbe6..d8631f6 100755 --- a/SLP/build_pkg.sh +++ b/SLP/build_pkg.sh @@ -70,7 +70,7 @@ create_emulator_metascript () { make_emulator_release_pkg () { echo ==== Start compressing emulator Packaging ==== - cp $BUILD_DIR/skins/icons/vtm.png $PKG_BIN_DIR/ + cp $BUILD_DIR/skins/icons/vtm.ico $PKG_BIN_DIR/ cd $PKG_BIN_DIR zip -r $PKG_OUTPUT * echo ==== Finish compressing emulator Packaging ==== diff --git a/SLP/package/install b/SLP/package/install index 4293901..754426c 100755 --- a/SLP/package/install +++ b/SLP/package/install @@ -4,52 +4,36 @@ 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="Samsung Linux Platform;Development" - ;; - 11.10) - categories="Samsung Linux Platform;Development" - ;; - *) - categories="Samsung Linux Platform" - ;; -esac - ## vtm shortcut -vtm_desktopfile=$desktoppath/samsung-sdk-vtm.desktop -vtm_iconfile=vtm.png +vtm_desktopfile=$desktoppath/tizen-sdk-vtm.desktop +vtm_iconfile=vtm.ico vtm_exefile=Emulator/vtm vtm_comment="Virtual target manager is a tool which can make a cloned emulator image" vtm_name="Virtual Target Manager" ## Do not modify the followings (Make desktop menu) -slppath=`grep SLP_SDK_INSTALL_PATH ~/.slpsdk` -SLP_SDK_INSTALL_PATH=`echo $INSTALLED_PATH` -if [ -z $SLP_SDK_INSTALL_PATH ] +TIZEN_SDK_INSTALL_PATH=`echo $INSTALLED_PATH` +if [ -z $TIZEN_SDK_INSTALL_PATH ] then -# echo "There is no SLP_SDK_PATH ENV" >> /tmp/emulator.log +# echo "There is no TIZEN_SDK_PATH ENV" >> /tmp/emulator.log exit 2; fi iconpath=~/.local/share/icons -vtm_exepath=$SLP_SDK_INSTALL_PATH/$vtm_exefile - -categoryfile=~/.local/share/desktop-directories/samsung-sdk_menu.directory +vtm_exepath=$TIZEN_SDK_INSTALL_PATH/$vtm_exefile mkdir -p $iconpath -if test -e $SLP_SDK_INSTALL_PATH/temp/$vtm_iconfile +if test -e $TIZEN_SDK_INSTALL_PATH/temp/$vtm_iconfile then - cp -f $SLP_SDK_INSTALL_PATH/temp/$vtm_iconfile $iconpath/$vtm_iconfile + cp -f $TIZEN_SDK_INSTALL_PATH/temp/$vtm_iconfile $iconpath/$vtm_iconfile else echo "$vtm_iconfile does not exist!!" exit 1 fi -#cp -f $SLP_SDK_INSTALL_PATH/temp/$vtm_iconfile $iconpath/$vtm_iconfile +#cp -f $TIZEN_SDK_INSTALL_PATH/temp/$vtm_iconfile $iconpath/$vtm_iconfile mkdir -p $desktoppath @@ -73,5 +57,5 @@ Exec=$vtm_exepath END ## Register .desktop file -xdg-desktop-menu install $categoryfile $vtm_desktopfile +xdg-desktop-menu install $MENU_DIRECTORY $vtm_desktopfile ### END Register Menu ### diff --git a/SLP/package/metapkg.sh b/SLP/package/metapkg.sh index 2b89be3..789a93c 100755 --- a/SLP/package/metapkg.sh +++ b/SLP/package/metapkg.sh @@ -1,6 +1,6 @@ PKG_NAME=emulator PKG_VERSION=$1 -PKG_DESC="Samsung Linux Platform Emulator" +PKG_DESC="Tizen Emulator" PKG_INSTALL=install PKG_REMOVE=remove PKG_OS=`uname` diff --git a/SLP/package/pkginfo.manifest b/SLP/package/pkginfo.manifest index 51128bf..912f27e 100644 --- a/SLP/package/pkginfo.manifest +++ b/SLP/package/pkginfo.manifest @@ -1,7 +1,7 @@ Package: emulator Version: 1.1.104 Maintainer: Yeong-Kyoon, Lee Dong-Kyun, Yun -Description: Samsung Linux Platform Emulator +Description: Tizen Emulator Install-script: install Remove-script: remove Category: SDK/Emulator diff --git a/SLP/package/remove b/SLP/package/remove index d0689ab..1d49c24 100755 --- a/SLP/package/remove +++ b/SLP/package/remove @@ -1,9 +1,9 @@ #!/bin/sh -e ## Register .desktop file -xdg-desktop-menu uninstall samsung-sdk_menu.directory samsung-sdk-vtm.desktop +xdg-desktop-menu uninstall $MENU_DIRECTORY tizen-sdk-vtm.desktop ### END Register Menu ### ## Remove icon file ## -rm -f ~/.local/share/icons/vtm.png +rm -f ~/.local/share/icons/vtm.ico ## End remove icon file ## -- 2.7.4