Signed-off-by: hyunsik.noh <hyunsik.noh@samsung.com>
Change-Id: I28aabd4cb139588ea6d91298c43391dad36bbb11
Signed-off-by: hyunsik.noh <hyunsik.noh@samsung.com>
#!/bin/sh
-SCRIPT=`pwd`
-HOME_PATH=`dirname $SCRIPT`
-cd $HOME_PATH/lib
+CURRENT_WORKSPACE_PATH=`pwd`
+HOME_PATH=`test -h $0 && dirname $(readlink $0) || dirname $0`
+cd $HOME_PATH/../lib
LIBS=`find . -maxdepth 1`
LIB=""
AUTOCOMPLETE_JAR=${CLI_PATH}/${AUTOCOMPLETE_SRC}.jar
AUTOCOMPLETE_SRC_SCRIPT=${CLI_PATH}/${AUTOCOMPLETE_SRC}
+AUTOCOMPLETE_SH=${CLI_PATH}/tizen.sh
+
sed -i "s:SCRIPT:\"${AUTOCOMPLETE_PATH}/${AUTOCOMPLETE_SCRIPT}\":g" ${AUTOCOMPLETE_SRC_SCRIPT}
cat ${AUTOCOMPLETE_SRC_SCRIPT} ${AUTOCOMPLETE_JAR} > ${AUTOCOMPLETE_SCRIPT}
rm ${AUTOCOMPLETE_JAR}
rm ${AUTOCOMPLETE_SRC_SCRIPT}
-gksudo mv ${AUTOCOMPLETE_SCRIPT} ${AUTOCOMPLETE_PATH}
+gksudo "mv ${AUTOCOMPLETE_SCRIPT} ${AUTOCOMPLETE_PATH}"
+gksudo "ln -s ${AUTOCOMPLETE_SH} /usr/bin/${AUTOCOMPLETE_SCRIPT}"
+
+
exit 0