]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix wordwrap.pl so it is more portable
authorTheodore Ts'o <tytso@mit.edu>
Fri, 21 Sep 2012 16:31:13 +0000 (12:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Sep 2012 16:50:04 +0000 (12:50 -0400)
Needed so that wordwrap.pl works with perl 5.14.2

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
wordwrap.pl

index 646bbc35d22d49e599bc8bbff82edb95bf89fdd0..807c62888af59c561f23279edee8dc1a60015f51 100644 (file)
@@ -9,8 +9,8 @@ while (<>) {
     }
     next if (/^$/);    # skip blank lines
     $linelen = 0;
-    split;
-    while (defined($word = shift @_)) {
+    @words = split;
+    while (defined($word = shift @words)) {
        $word =~ s#\$\(srcdir\)/\.\./version.h#\$\(top_srcdir\)/version.h#;
        $word =~ s#\$\(srcdir\)/.\.\/\.\./version.h#\$\(top_srcdir\)/version.h#;
        $word =~ s#\$\(srcdir\)/.\.\/et/com_err.h#\$\(top_srcdir\)/lib/et/com_err.h#;