From: Thomas Debesse Date: Mon, 8 Mar 2021 08:31:53 +0000 (+0100) Subject: easy-builder: always sync before doing serious things to prevent issues happening... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d6bd19b57297f184d08e867829f7231c26faaefd;p=xonotic%2Fnetradiant.git easy-builder: always sync before doing serious things to prevent issues happening with slow I/O on macOS errors like that: > CMakeFiles/gtktheme-mojave.dir/build.make:73: CMakeFiles/gtkglext.dir/build.make:73: CMakeFiles/gtktheme-mojave.dir/progress.make: No such file or directory > ginstall: cannot change permissions of 'netradiant/build/lib/gtkglext-1.0/include/gdkglext-config.h': No such file or directory > mkdir: netradiant/build/registry: Operation not permitted > clang: error: no such file or directory: '../../libs/libcm.a' --- diff --git a/easy-builder b/easy-builder index f38d0fc2..ad55492c 100755 --- a/easy-builder +++ b/easy-builder @@ -93,15 +93,18 @@ case "$(uname -s)" in esac task_enter_build_dir () { + sync mkdir -pv "${build_dir}" cd "${build_dir}" } task_fetch_submodules () { + sync "${fetch_submodules_cmd[@]}" } task_configure () { + sync cmake \ -G'Unix Makefiles' \ -D'CMAKE_INSTALL_PREFIX'="${install_dir}" \ @@ -111,14 +114,17 @@ task_configure () { } task_build_builtins () { + sync make -j"${job_count}" builtins } task_build () { + sync make -j"${job_count}" } task_install () { + sync make "${install_target}" }