c54c53fa0e
Changelog: https://github.com/openucx/ucx/releases/tag/v1.20.1 https://github.com/openucx/ucx/blob/v1.20.1/NEWS - Enable and pass gtest test suite. - Fix warnings from portclippy. - Improve formatting and alignment. PR: 295984 294958 294959 Sponsored by: UNIS Labs Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org> MFH: 2026Q2
16 lines
890 B
Makefile
16 lines
890 B
Makefile
--- src/tools/info/Makefile.am.orig 2026-06-10 21:28:13 UTC
|
|
+++ src/tools/info/Makefile.am
|
|
@@ -14,7 +14,11 @@ build_config.h: $(top_builddir)/config.h Makefile
|
|
# Produce a C header file which contains all defined variables from config.h
|
|
#
|
|
build_config.h: $(top_builddir)/config.h Makefile
|
|
- $(SED) -nr 's:\s*#define\s+(\w+)(\s+(\w+)|\s+(".*")|\s*)$$:{"\1", UCS_PP_MAKE_STRING(\3\4)},:p' <$(top_builddir)/config.h >$@
|
|
+ $(SED) -nE \
|
|
+ -e 's/^[[:space:]]*#define[[:space:]]+([A-Za-z_][A-Za-z_0-9]*)[[:space:]]+(".*")$$/{"\1", UCS_PP_MAKE_STRING(\2)},/p' \
|
|
+ -e 's/^[[:space:]]*#define[[:space:]]+([A-Za-z_][A-Za-z0-9_]*)[[:space:]]+([^[:space:]]+)$$/{"\1", UCS_PP_MAKE_STRING(\2)},/p' \
|
|
+ -e 's/^[[:space:]]*#define[[:space:]]+([A-Za-z_][A-Za-z0-9_]*)$$/{"\1", ""},/p' \
|
|
+ <$(top_builddir)/config.h >$@
|
|
|
|
ucx_info_CPPFLAGS = $(BASE_CPPFLAGS)
|
|
ucx_info_CFLAGS = $(BASE_CFLAGS)
|