diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2024-04-21 21:50:55 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2024-04-26 14:01:19 +0200 |
commit | f618f08cc310f20e2888cf4e5e99cfeb8fbd15b7 (patch) | |
tree | bfad2d9b5f14f60a862f7f372c5e5c4a98719009 /filter | |
parent | 1a774927f1bd3e9e171732e3636d61ba46ecdc6d (diff) |
simplify some sed rules/statements and use proper quoting
make removes partially built targets in case the rule exits with
non-zero status, so creating a temp file and moving it is not necessary
also use single quotes for cases where characters might be interpreted
by the shell
Also combine multiple sed calls into a single call of sed with multiple
expressions and replace additional "grep -v foo" with corresponding sed
delete command
Change-Id: Iff7e3b962175e347e5ed100a87c96fbaeef39985
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166410
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/CustomTarget_svg.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/CustomTarget_svg.mk b/filter/CustomTarget_svg.mk index 065e26e1bb1c..bc980eb48e82 100644 --- a/filter/CustomTarget_svg.mk +++ b/filter/CustomTarget_svg.mk @@ -41,8 +41,7 @@ $(filter_GEN_svg_Tokens_cxx) : $(filter_GEN_svg_Tokens_gperf) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,GPF,1) $(call gb_Helper_abbreviate_dirs, \ $(GPERF) --compare-strncmp -C -m 20 --switch=2 --readonly-tables $(filter_GEN_svg_Tokens_gperf) \ - | sed -e "s/(char\*)0/(char\*)0$(COMMA) 0/g" \ - > $(filter_GEN_svg_Tokens_cxx)) + | sed -e '/^#line/d' -e 's/(char\*)0/(char\*)0$(COMMA) 0/g' > $@) $(filter_GEN_svg_Script_hxx) : \ $(call gb_ExternalExecutable_get_dependencies,python) \ |