]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: replace `echo -e` with `printf`
authorJeremy Sowden <jeremy@azazel.net>
Thu, 14 Dec 2023 16:44:05 +0000 (16:44 +0000)
committerPhil Sutter <phil@nwl.cc>
Fri, 15 Dec 2023 12:40:14 +0000 (13:40 +0100)
`echo -e` is not portable and we can end up with:

      GEN      matches.man
    -e      + ./libxt_addrtype.man
    -e      + ./libip6t_ah.man
    -e      + ./libipt_ah.man
    -e      + ./libxt_bpf.man
    -e      + ./libxt_cgroup.man
    -e      + ./libxt_cluster.man
    -e      + ./libxt_comment.man
    -e      + ./libxt_connbytes.man
    -e      + ./libxt_connlabel.man
    -e      + ./libxt_connlimit.man
    -e      + ./libxt_connmark.man
    -e      + ./libxt_conntrack.man
    [...]

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/GNUmakefile.in

index dfa58c3b9e8b9b79953b6ed480c1c0d5d92d0ee1..20c2b7bc629349db89c1c582177b62ff4e8e20e3 100644 (file)
@@ -228,19 +228,19 @@ man_run    = \
        for ext in $(sort ${1}); do \
                f="${srcdir}/libxt_$$ext.man"; \
                if [ -f "$$f" ]; then \
-                       echo -e "\t+ $$f" >&2; \
+                       printf "\t+ $$f\n" >&2; \
                        echo ".SS $$ext"; \
                        cat "$$f" || exit $$?; \
                fi; \
                f="${srcdir}/libip6t_$$ext.man"; \
                if [ -f "$$f" ]; then \
-                       echo -e "\t+ $$f" >&2; \
+                       printf "\t+ $$f\n" >&2; \
                        echo ".SS $$ext (IPv6-specific)"; \
                        cat "$$f" || exit $$?; \
                fi; \
                f="${srcdir}/libipt_$$ext.man"; \
                if [ -f "$$f" ]; then \
-                       echo -e "\t+ $$f" >&2; \
+                       printf "\t+ $$f\n" >&2; \
                        echo ".SS $$ext (IPv4-specific)"; \
                        cat "$$f" || exit $$?; \
                fi; \