summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-11-15 10:40:26 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2018-11-15 10:40:26 +0100
commit960b269c222c600a750173382ad4002d1892ffd8 (patch)
treec59941568ef952c3eaca243ce715bf068aae07b6
parent73f228c54bc97f62793935d17dce68765b265c39 (diff)
build-fct : take care of .ninja_deps and .ninja_log ownership
-rwxr-xr-xbuild-fcts.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-fcts.sh b/build-fcts.sh
index 9445b64..5b056a5 100755
--- a/build-fcts.sh
+++ b/build-fcts.sh
@@ -207,6 +207,7 @@ function do_meson()
207 else 207 else
208 [ $CLEAN_LEVEL -ge 3 ] && ( exec_cmd "meson configure --clearcache $BUILD_DIR" || fatal "meson configure" ) 208 [ $CLEAN_LEVEL -ge 3 ] && ( exec_cmd "meson configure --clearcache $BUILD_DIR" || fatal "meson configure" )
209 fi 209 fi
210 echo "$SUDO_PASSWD" | sudo -S chown $USER $BUILD_DIR/.ninja_deps $BUILD_DIR/.ninja_log || true
210 [ $CLEAN_LEVEL -ge 1 -a $CLEAN_LEVEL -lt 4 -a -f $BUILD_DIR/build.ninja ] && exec_cmd "ninja -C $BUILD_DIR clean" 211 [ $CLEAN_LEVEL -ge 1 -a $CLEAN_LEVEL -lt 4 -a -f $BUILD_DIR/build.ninja ] && exec_cmd "ninja -C $BUILD_DIR clean"
211 echo -e " $RED:: build $RESET" 212 echo -e " $RED:: build $RESET"
212 exec_cmd "ninja -C $BUILD_DIR" || fatal "ninja" 213 exec_cmd "ninja -C $BUILD_DIR" || fatal "ninja"