mirror of
https://gitee.com/openharmony/third_party_e2fsprogs
synced 2025-02-17 09:59:32 +00:00
Fix wordwrap.pl so it is more portable
Needed so that wordwrap.pl works with perl 5.14.2 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
b2f5ce5516
commit
bbcd91bb0d
@ -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#;
|
||||
|
Loading…
x
Reference in New Issue
Block a user