1
0
Fork 0
linux/debian/bin/fix-shebang
Daniel Baumann 09ce90cf76
Adding debian version 6.12.33-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 12:15:16 +02:00

12 lines
398 B
Perl
Executable file

#!/usr/bin/perl -pi
# Change "#!/usr/bin/env perl" to "#!/usr/bin/perl" (policy §10.4).
# Other uses of /usr/bin/env should probably be converted as well, but
# policy doesn't specify what to do.
if ($. == 1 && m|^\#!\s*/usr/bin/env\s+(.+)|) {
if ($1 eq "perl") {
$_ = "#!/usr/bin/perl\n";
} else {
print STDERR "W: Found #!/usr/bin/env $1 and don't know what to substitute\n";
}
}