[Title] Added web cli 'symbolic link file'
authorgyeongseok.seo <gyeongseok.seo@samsung.com>
Wed, 17 Oct 2012 02:40:06 +0000 (11:40 +0900)
committergyeongseok.seo <gyeongseok.seo@samsung.com>
Wed, 17 Oct 2012 02:40:06 +0000 (11:40 +0900)
[Desc.] link file created in '~/tizen-sdk/tools' directory
[Issue] redmine 7217

Change-Id: Ia3c5251e26f1ceb0b09b6abf2573273958f1c147

package/web-cli.install.linux [new file with mode: 0755]
package/web-cli.remove.linux [new file with mode: 0755]

diff --git a/package/web-cli.install.linux b/package/web-cli.install.linux
new file mode 100755 (executable)
index 0000000..f341ff0
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash -x
+
+## Do not modify the followings (Make desktop menu)
+TIZEN_SDK_INSTALL_PATH=${INSTALLED_PATH}
+tools_path=${TIZEN_SDK_INSTALL_PATH}/tools
+cli_path=${tools_path}/ide/bin
+
+## web-cli symbolic link
+for CLI_CMD in `ls ${cli_path}`; do
+    ln -s ${cli_path}/${CLI_CMD} -t ${tools_path}
+done
+rm -rf ${tools_path}/common.sh
+
+exit 0
diff --git a/package/web-cli.remove.linux b/package/web-cli.remove.linux
new file mode 100755 (executable)
index 0000000..fa134ee
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash -xe
+
+## Remove web-cli symbolic link files
+TIZEN_SDK_INSTALL_PATH=${INSTALLED_PATH}
+tools_path=${TIZEN_SDK_INSTALL_PATH}/tools
+
+rm -rf ${tools_path}/web-*
+rm ${tools_path}/webtizen
+
+### End ###