This reverts commitc25ce589dc. Looks like some of the Android build systems do NOT have /usr/bin/env so revert this change until that happens. Specifically the following builds fail without this change reverted: kernel_kasan_aarch64 on aosp_kernel-common-android-mainline kernel_virt_kasan_aarch64 on aosp_kernel-common-android-mainline kernel_virt_kasan_x86_64 on aosp_kernel-common-android-mainline kernel_kasan_x86_64 on aosp_kernel-common-android-mainline Fixes:c25ce589dc("tweewide: Fix most Shebang lines") Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I8077c5c1a4b9934f6d40aebb67212cc0b0f2513e
29 lines
600 B
Perl
Executable File
29 lines
600 B
Perl
Executable File
#!/usr/bin/perl
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Author: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|
|
#
|
|
# Produce manpages from kernel-doc.
|
|
# See Documentation/doc-guide/kernel-doc.rst for instructions
|
|
|
|
if ($#ARGV < 0) {
|
|
die "where do I put the results?\n";
|
|
}
|
|
|
|
mkdir $ARGV[0],0777;
|
|
$state = 0;
|
|
while (<STDIN>) {
|
|
if (/^\.TH \"[^\"]*\" 9 \"([^\"]*)\"/) {
|
|
if ($state == 1) { close OUT }
|
|
$state = 1;
|
|
$fn = "$ARGV[0]/$1.9";
|
|
print STDERR "Creating $fn\n";
|
|
open OUT, ">$fn" or die "can't open $fn: $!\n";
|
|
print OUT $_;
|
|
} elsif ($state != 0) {
|
|
print OUT $_;
|
|
}
|
|
}
|
|
|
|
close OUT;
|