tools: sync the "cleanfile" and "cleanpatch" with Linux

Sync the "cleanfile" and "cleanpatch" scripts with the versions from
the Linux kernel.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2025-10-01 11:46:06 -07:00
parent 23ce05f906
commit c811a80700
2 changed files with 6 additions and 2 deletions

View file

@ -1,9 +1,11 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
# SPDX-License-Identifier: GPL-2.0
#
# Clean a text file -- or directory of text files -- of stealth whitespace.
# WARNING: this can be a highly destructive operation. Use with caution.
#
use warnings;
use bytes;
use File::Basename;

View file

@ -1,9 +1,11 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
# SPDX-License-Identifier: GPL-2.0
#
# Clean a patch file -- or directory of patch files -- of stealth whitespace.
# WARNING: this can be a highly destructive operation. Use with caution.
#
use warnings;
use bytes;
use File::Basename;