From 7b73c4a75fbddcfa1bc552fed49c228b9cdaf7b0 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 6 Nov 2019 00:26:38 -0500 Subject: build: remove use of handcrafted m4 in configuring scripts Now that library/ is fully gone, we don't need this anymore. Signed-off-by: Eli Schwartz Signed-off-by: Allan McRae --- scripts/Makefile.am | 2 +- scripts/meson.build | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 58dbcec4..47455ed2 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -189,7 +189,7 @@ edit = sed \ ## wrong file by accident. $(OURSCRIPTS): %: %.sh.in wrapper.sh.in $(LIBMAKEPKG_IN) Makefile $(AM_V_at)$(RM) $@ - $(AM_V_GEN)test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@ + $(AM_V_GEN)test -f $(srcdir)/$@.sh.in && $(edit) $(srcdir)/$@.sh.in >$@ $(AM_V_at)chmod +x,a-w $@ @$(BASH_SHELL) -O extglob -n $@ diff --git a/scripts/meson.build b/scripts/meson.build index 56f31222..696d8ddd 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -14,18 +14,12 @@ SCRIPT_EDITOR = find_program(configure_file( output : 'edit-script.sh', configuration : substs)) -m4_edit = generator( - M4, - arguments : ['-P', '-I', meson.current_source_dir(), '@INPUT@'], - output : '@PLAINNAME@', - capture : true) - foreach script : scripts script_shortname = script.split('.')[0] custom_target( script, - input : m4_edit.process(script), + input : script, command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@', '0755'], output : script_shortname, install : true, @@ -40,7 +34,7 @@ foreach script : wrapped_scripts # the build directory. internal_script = custom_target( script, - input : m4_edit.process(script), + input : script, command : [ SCRIPT_EDITOR, '@INPUT@', '@OUTPUT@', '0755'], output : script, build_by_default : true) -- cgit v1.2.3-54-g00ecf