]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
easy-builder: always sync before doing serious things to prevent issues happening...
authorThomas Debesse <dev@illwieckz.net>
Mon, 8 Mar 2021 08:31:53 +0000 (09:31 +0100)
committerThomas Debesse <dev@illwieckz.net>
Mon, 8 Mar 2021 08:54:45 +0000 (09:54 +0100)
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'

easy-builder

index f38d0fc2692893c6980bdb72e906f7ede90d1432..ad55492cafa7a29006d08080b1b5162f757b20a5 100755 (executable)
@@ -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}"
 }