Rules.modular: use temporary file to not ignore error

Save the result of the m4 command into a temporary file and split the
commands, to avoid ignoring failures of the first command.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
Christian Göttsche 2024-02-22 17:38:21 +01:00
parent 752ebc167b
commit 82eca136e6
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ $(tmpdir)/seusers: $(seusers)
$(users_extra): $(m4support) $(user_files) $(users_extra): $(m4support) $(user_files)
@test -d $(tmpdir) || mkdir -p $(tmpdir) @test -d $(tmpdir) || mkdir -p $(tmpdir)
$(verbose) $(M4) $(M4PARAM) -D users_extra $^ | \ $(verbose) $(M4) $(M4PARAM) -D users_extra $^ > $(tmpdir)/$(@F).tmp
$(SED) -r -n -e 's/^[[:blank:]]*//g' -e '/^user/p' > $@ $(verbose) $(SED) -r -n -e 's/^[[:blank:]]*//g' -e '/^user/p' $(tmpdir)/$(@F).tmp > $@
######################################## ########################################
# #