Ticket #4524: 0001-buildsys-prefer-gnu-indent-gindent-to-bsd-indent-if-.patch

File 0001-buildsys-prefer-gnu-indent-gindent-to-bsd-indent-if-.patch, 1.1 KB (added by zaytsev, 5 months ago)
  • Makefile.am

    From efe851851508264af057c146383ce7d8285804e1 Mon Sep 17 00:00:00 2001
    From: "Yury V. Zaytsev" <yury@shurup.com>
    Date: Thu, 30 May 2024 20:53:00 +0200
    Subject: [PATCH] buildsys: prefer gnu indent (gindent) to bsd indent if
     available
    
    BSD indent does not have `--gnu-style` flag ;-)
    
    Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
    ---
     Makefile.am  | 2 +-
     configure.ac | 1 +
     2 files changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/Makefile.am b/Makefile.am
    index ec5b4dc3b..3295f8130 100644
    a b cppcheck-split-all: \ 
    115115    cppcheck-unusedFunction \ 
    116116    cppcheck-missingInclude 
    117117 
    118 INDENT_CMD = indent \ 
     118INDENT_CMD = $(INDENT) \ 
    119119    --gnu-style \ 
    120120    --format-first-column-comments \ 
    121121    --indent-level4 \ 
  • configure.ac

    diff --git a/configure.ac b/configure.ac
    index 5cf1f2f74..12556f563 100644
    a b dnl Check for other tools 
    212212dnl ############################################################################ 
    213213 
    214214AC_CHECK_TOOL(AR, ar, ar) 
     215AC_CHECK_TOOL(INDENT, gindent, indent) 
    215216mc_UNIT_TESTS 
    216217 
    217218