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:
parent
752ebc167b
commit
82eca136e6
|
@ -119,8 +119,8 @@ $(tmpdir)/seusers: $(seusers)
|
|||
|
||||
$(users_extra): $(m4support) $(user_files)
|
||||
@test -d $(tmpdir) || mkdir -p $(tmpdir)
|
||||
$(verbose) $(M4) $(M4PARAM) -D users_extra $^ | \
|
||||
$(SED) -r -n -e 's/^[[:blank:]]*//g' -e '/^user/p' > $@
|
||||
$(verbose) $(M4) $(M4PARAM) -D users_extra $^ > $(tmpdir)/$(@F).tmp
|
||||
$(verbose) $(SED) -r -n -e 's/^[[:blank:]]*//g' -e '/^user/p' $(tmpdir)/$(@F).tmp > $@
|
||||
|
||||
########################################
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue