summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/update-mojo.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/update-mojo.sh b/utils/update-mojo.sh
index fcbc81e7..967d139a 100755
--- a/utils/update-mojo.sh
+++ b/utils/update-mojo.sh
@@ -30,14 +30,18 @@ if [ -n "$(git -C "${chromium_dir}" status --porcelain)" ] ; then
exit 1
fi
+# Remove the previously imported files.
+rm -rf "${ipc_dir}/mojo/"
+rm -rf "${ipc_dir}/tools/"
+
# Copy the diagnosis file
+mkdir -p "${ipc_dir}/tools/diagnosis"
cp "${chromium_dir}/tools/diagnosis/crbug_1001171.py" "${ipc_dir}/tools/diagnosis"
# Copy the rest of mojo
+mkdir -p "${ipc_dir}/mojo/public"
cp "${chromium_dir}/mojo/public/LICENSE" "${ipc_dir}/mojo/public"
-rm -rf "${ipc_dir}/mojo/public/tools/*"
-
(
cd "${chromium_dir}" || exit
find ./mojo/public/tools -type f \