Commit ef4c328e authored by Lambros Lambrou's avatar Lambros Lambrou Committed by Commit Bot

Fix register_local_nm_hosts.sh

This tool stopped working when comments ({#..#}) were added to the
manifest Jinja templates.

Change-Id: I54a0fce1907b55671787a9dd57f62d2f2e958d2e
Reviewed-on: https://chromium-review.googlesource.com/c/1459062
Auto-Submit: Lambros Lambrou <lambroslambrou@chromium.org>
Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
Commit-Queue: Jamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630072}
parent 8a0be32b
...@@ -26,8 +26,14 @@ install_manifest() { ...@@ -26,8 +26,14 @@ install_manifest() {
echo Registering ${host_path} in ${target_manifest} echo Registering ${host_path} in ${target_manifest}
mkdir -p "${target_dir}" mkdir -p "${target_dir}"
sed -e "s#{{ ${host_path_var_name} }}#${host_path}#g" \
< "$manifest_template" > "$target_manifest" "$SRC_DIR/remoting/tools/build/remoting_localize.py" \
--define "${host_path_var_name}=${host_path}" \
--define IT2ME_HOST_DESCRIPTION=dev \
--define ME2ME_HOST_DESCRIPTION=dev \
--template "${manifest_template}" \
--output "${target_manifest}" \
en
} }
register_hosts() { register_hosts() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment