[TCT][TPK Scripts][NONACR][fixed init.sh to build and install successfully with ...
authorShobhit Verma <shobhit.v@samsung.com>
Tue, 6 Sep 2016 13:20:48 +0000 (18:50 +0530)
committerShobhit Verma <shobhit.v@samsung.com>
Tue, 6 Sep 2016 13:20:48 +0000 (18:50 +0530)
Change-Id: I6c3175e471b10b04cf38f21d0813f20810932d44
Signed-off-by: Shobhit Verma <shobhit.v@samsung.com>
scripts_tpk/init.sh

index 0f6d7ef43310f43cf415d0590b3d1b2de7fc35ae..1052885857c11bcd0cd147154d592f29cafcef43 100755 (executable)
 #
 
 PROJECT_DIR="$(cd "$(dirname $0)" && cd .. && pwd)"
-if [ ! -d $HOME/bin ]; then 
-       mkdir -p $HOME/bin
-fi     
+sudo ln -sf $HOME/tizen-sdk/tools/ide/bin/tizen.sh /usr/bin/tizen
 
-ln -sf $HOME/tizen-sdk/tools/ide/bin/tizen.sh $HOME/bin/tizen
-export PATH=$PATH:$HOME/bin
 tizen cli-config --global default.profiles.path=$HOME/workspace/.metadata/.plugins/org.tizen.common.sign/profiles.xml
 
-ln -sf ./scripts_tpk/tpkbuild.sh $PROJECT_DIR/tpkbuild
+sudo ln -sf ./scripts_tpk/tpkbuild.sh $PROJECT_DIR/tpkbuild