mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-12 11:23:32 +08:00
797f5ef14e
Makefile.in: Move include/asm/types.h.in to lib/ext2fs/ext2_fs.h.in. wordwrap.pl: Add some rules which help fix up the dependencies. Many files: Move include/asm/types.h.in to lib/ext2fs/ext2_fs.h.in.
30 lines
668 B
Perl
30 lines
668 B
Perl
#!/usr/bin/perl
|
|
#
|
|
# wordwrap.pl --- does word wrap
|
|
#
|
|
while (<>) {
|
|
if (/^#/) { # don't word wrap comments
|
|
print;
|
|
next;
|
|
}
|
|
next if (/^$/); # skip blank lines
|
|
$linelen = 0;
|
|
split;
|
|
while (defined($word = shift @_)) {
|
|
$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#;
|
|
if ($linelen > 0) {
|
|
printf(" ");
|
|
}
|
|
$len = length($word) + 1;
|
|
$linelen += $len;
|
|
if ($linelen > 78) {
|
|
printf("\\\n ");
|
|
$linelen = 1+$len;
|
|
}
|
|
printf("%s", $word);
|
|
}
|
|
printf("\n");
|
|
}
|