From d9132e1cba66b5455a627251f377cd95eb008fc1 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 1 Dec 2019 23:19:58 +0000 Subject: convert texinfo checks to proper awk script, add detection for awk/gawk, remove obsolete code. --- contrib/scripts/Makefile.am | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'contrib/scripts/Makefile.am') diff --git a/contrib/scripts/Makefile.am b/contrib/scripts/Makefile.am index 367e5c4c9..b76e57db7 100644 --- a/contrib/scripts/Makefile.am +++ b/contrib/scripts/Makefile.am @@ -9,7 +9,8 @@ noinst_SCRIPTS = \ removetrailingwhitespace.py \ gnunet_pyexpect.py \ gnunet_janitor.py \ - gnunet-chk.py + gnunet-chk.py \ + check-texinfo.awk bin_SCRIPTS = \ gnunet-bugreport \ @@ -24,12 +25,13 @@ EXTRA_DIST = \ $(SCRIPTS) \ removetrailingwhitespace.py.in \ pydiffer.py.in \ - gnunet-suidfix + gnunet-suidfix \ + check-texinfo.awk.in CLEANFILES = \ $(noinst_SCRIPTS) -do_subst = $(AWK) -v py="$(PYTHON)" '{gsub("@PYTHONEXE@",py); print $$0}' +do_subst = $(AWK) -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" '{if (/@AWKEXE@/) { gsub("@AWKEXE@",awkay)}; gsub("@PYTHONEXE@",py); print $$0}' # Use SUFFIX Extension rules, they are more portable for every # implementation of 'make'. @@ -46,3 +48,7 @@ SUFFIXES = .py.in .py .py.in.py: $(do_subst) < $< > $@ chmod +x $@ + +check-texinfo.awk: check-texinfo.awk.in Makefile + $(do_subst) < $(srcdir)/check-texinfo.awk.in > check-texinfo.awk + chmod +x check-texinfo.awk -- cgit v1.2.3