Skip to content

Commit 263a791

Browse files
author
Patricia Aas
committed
Add a step to install platform deps and install gnu-sed on MacOS - also adapt to MacOS 11 in the script
1 parent 62f5771 commit 263a791

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

update.sh

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,35 @@ clean_llvm_build() {
284284
info "[LLVM] Build not supported on Linux yet"
285285
;;
286286

287-
"darwin19")
287+
"darwin19" | "darwin20")
288288
info "[LLVM] Build not supported on MacOS yet"
289289
;;
290290

291291
esac
292292
}
293293

294+
install_platform_deps() {
295+
info "[Init] Install platform dependencies"
296+
297+
case $OSTYPE in
298+
299+
"msys")
300+
info "[Init] No Windows dependencies"
301+
;;
302+
303+
"linux-gnu")
304+
info "[Init] No Linux dependencies"
305+
;;
306+
307+
"darwin19" | "darwin20")
308+
info "[Init] Install gnu-sed"
309+
brew install gnu-sed
310+
export PATH=/usr/local/opt/gnu-sed/libexec/gnubin:$PATH
311+
;;
312+
313+
esac
314+
}
315+
294316
make_work_dir() {
295317
info "[Init] Make work directory"
296318
mkdir -p $WORK_DIR
@@ -662,7 +684,7 @@ clean_qt_build() {
662684
../qt-everywhere-src-5.15.2/configure ${COMMON_CONFIGURE_FLAGS} -platform linux-clang-libc++
663685
;;
664686

665-
"darwin19")
687+
"darwin19" | "darwin20")
666688
info "[Qt] Clang version in use"
667689
clang --version
668690
info "[Qt] Starting configure step"
@@ -742,6 +764,7 @@ case $WORKFLOW in
742764
$WORKFLOW_ENV)
743765
header "Dev Environment Bring Up Workflow"
744766

767+
confirm "0. Install platform deps [y/N]" && install_platform_deps
745768
confirm "1. Make work directory? [y/N]" && make_work_dir
746769
confirm "2. Get Depot Tools? [y/N]" && get_depot_tools
747770
confirm "3. Get Qt? [y/N]" && get_qt

0 commit comments

Comments
 (0)