[Title] Fix manifest file bug
authorBon-Yong Lee <bonyong.lee@samsung.com>
Fri, 7 Dec 2012 10:07:02 +0000 (19:07 +0900)
committerBon-Yong Lee <bonyong.lee@samsung.com>
Fri, 7 Dec 2012 10:07:02 +0000 (19:07 +0900)
[Desc.]
[Issue]

package/web-cli.install.linux

index f341ff0..5b5fe7e 100755 (executable)
@@ -11,4 +11,8 @@ for CLI_CMD in `ls ${cli_path}`; do
 done
 rm -rf ${tools_path}/common.sh
 
+safe="$(printf "%s" "$tools_path" |sed 's/\\/\\\\/g' | sed 's/\"/\\"/g' | sed 's/\//\\\//g' )"
+sed "s/\$DIR_REALM/${safe}\/ide\/realm/" ${cli_path}/web-template > ${cli_path}/web-template
+sed "s/\$DIR_REALM/${safe}\/ide\/realm/" ${tools_path}/realm/config.json > ${tools_path}/realm/config.json
+
 exit 0