File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ set -euo pipefail
44script_dir=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " && pwd) "
55repo_root=" $( cd -- " ${script_dir} /../.." && pwd) "
66default_builddir=" ${repo_root} /builddir"
7+ sync_icons_script=" ${script_dir} /sync_icons.py"
78declare -a MESON_CMD=()
89PYTHON_CMD=" "
910declare -a READ_ARRAY_RESULT=()
@@ -248,6 +249,15 @@ if [[ -z "${command_name}" ]]; then
248249 exit 1
249250fi
250251
252+ if [[ ( " ${command_name} " == " setup" || " ${command_name} " == " compile" || " ${command_name} " == " install" ) && " ${OPENQ4_SKIP_ICON_SYNC:- 0} " != " 1" ]]; then
253+ if [[ ! -f " ${sync_icons_script} " ]]; then
254+ echo " Icon sync script not found: '${sync_icons_script} '." >&2
255+ exit 1
256+ fi
257+
258+ " ${PYTHON_CMD} " " ${sync_icons_script} " --source-root " ${repo_root} "
259+ fi
260+
251261if [[ " ${command_name} " == " setup" ]]; then
252262 for (( i = 0 ; i < ${# effective_args[@]} ; ++ i )) ; do
253263 if [[ " ${effective_args[$i]} " == " --reconfigure" && $(( i + 1 )) -lt ${# effective_args[@]} ]]; then
You can’t perform that action at this time.
0 commit comments