]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi.build: print important build commands 27569/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 May 2023 13:03:24 +0000 (15:03 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 May 2023 13:04:02 +0000 (15:04 +0200)
This undoes the effect of 1394a3ec351048bae008627a0775d1f9a6c46294 partially.
We print the fairly verbose output of the build commands, so let's also
print the commands themselves. This makes it much easier to understand what
is going on.

(The style was copied from other scripts where we do 'set -x' for one command.)

mkosi.presets/00-base/mkosi.build

index 4b6cff662fd6c4e5919d1e99aa690cb5bb4e8623..5db96006fe5d973c2844478b1ae078f44ee8b133 100755 (executable)
@@ -174,10 +174,10 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
         )
     fi
 
-    meson setup "$BUILDDIR" "${CONFIGURE_OPTS[@]}"
+    ( set -x; meson setup "$BUILDDIR" "${CONFIGURE_OPTS[@]}" )
 fi
 
-ninja -C "$BUILDDIR" "$@"
+( set -x; ninja -C "$BUILDDIR" "$@" )
 if [ "$WITH_TESTS" = 1 ]; then
     if [ -n "$SANITIZERS" ]; then
         export ASAN_OPTIONS="$MKOSI_ASAN_OPTIONS"
@@ -187,7 +187,7 @@ if [ "$WITH_TESTS" = 1 ]; then
         TIMEOUT_MULTIPLIER=1
     fi
 
-    meson test -C "$BUILDDIR" --print-errorlogs --timeout-multiplier=$TIMEOUT_MULTIPLIER
+    ( set -x; meson test -C "$BUILDDIR" --print-errorlogs --timeout-multiplier=$TIMEOUT_MULTIPLIER )
 fi
 
-meson install -C "$BUILDDIR" --quiet --no-rebuild --only-changed
+( set -x; meson install -C "$BUILDDIR" --quiet --no-rebuild --only-changed )