]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid perl warning in sc_check-AUTHORS
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 21 Nov 2013 11:11:01 +0000 (12:11 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Thu, 21 Nov 2013 11:11:01 +0000 (12:11 +0100)
With newer perl, "make syntax-check" issues many warnings like:
  -i used with no filenames on the command line, reading from STDIN.

* cfg.mk (sc_check-AUTHORS): Remove the -i flag in the perl
invocation as it is reading from a pipe.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index ec91158f5a4b8a5d25afdd5184fd6f12570c886d..788c351344cae187a3ff65b5cf164bce698e4627 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -181,7 +181,7 @@ sc_check-AUTHORS: $(all_programs)
            exe='[';                                    \
          fi;                                           \
          LC_ALL=$$locale ./src/$$exe --version         \
-           | perl -0 -pi -e 's/,\n/, /gm'              \
+           | perl -0 -p -e 's/,\n/, /gm'               \
            | sed -n -e '/Written by /{ s//'"$$i"': /;' \
                  -e 's/,* and /, /; s/\.$$//; p; }';   \
        done > $(au_actual) &&                          \