# HG changeset patch # User Olaf Wintermann # Date 1766081033 -3600 # Node ID ec0d28411e6a2c50b8b1b4ce303278cf6d97501c # Parent 66cb1937078f09798d825b42d8477b801f0550ca wrap build commands in separate shell scripts diff -r 66cb1937078f -r ec0d28411e6a build.template --- a/build.template Wed Dec 17 21:02:28 2025 +0100 +++ b/build.template Thu Dec 18 19:03:53 2025 +0100 @@ -89,21 +89,36 @@ # configure configure= {{- if $build.Configure}} - {{ $build.Configure }} > $log_dir/$configure_log 2>&1 + cat > uwbuild-configure.sh << '__CONFIGURE_EOF__' +#!/bin/sh +{{ $build.Configure }} +__CONFIGURE_EOF__ + chmod +x uwbuild-configure.sh + ./uwbuild-configure > $log_dir/$configure_log 2>&1 configure=$? {{- end}} # compile compile= {{- if $build.Compile}} - {{ $build.Compile }} > $log_dir/$compile_log 2>&1 + cat > uwbuild-compile.sh << '__COMPILE_EOF__' +#!/bin/sh +{{ $build.Compile }} +__COMPILE_EOF__ + chmod +x uwbuild-compile.sh + ./uwbuild-compile.sh > $log_dir/$compile_log 2>&1 compile=$? {{- end}} # check check= {{- if $build.Check}} - {{ $build.Check }} > $log_dir/$check_log 2>&1 + cat > uwbuild-check.sh << '__CHECK_EOF__' +#!/bin/sh +{{ $build.Check }} +__CHECK_EOF__ + chmod +x uwbuild-check.sh + ./uwbuild-check.sh > $log_dir/$check_log 2>&1 check=$? {{- end}}