patch-2.4.19 linux-2.4.19/Documentation/kernel-doc-nano-HOWTO.txt

Next file: linux-2.4.19/Documentation/kernel-docs.txt
Previous file: linux-2.4.19/Documentation/isdn/README.HiSax
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/Documentation/kernel-doc-nano-HOWTO.txt linux-2.4.19/Documentation/kernel-doc-nano-HOWTO.txt
@@ -73,10 +73,10 @@
 mkdir $ARGV[0],0777;
 $state = 0;
 while (<STDIN>) {
-    if (/^\.TH \"[^\"]*\" 4 \"([^\"]*)\"/) {
+    if (/^\.TH \"[^\"]*\" (\d) \"([^\"]*)\"/) {
 	if ($state == 1) { close OUT }
 	$state = 1;
-	$fn = "$ARGV[0]/$1.4";
+	$fn = "$ARGV[0]/$2.$1";
 	print STDERR "Creating $fn\n";
 	open OUT, ">$fn" or die "can't open $fn: $!\n";
 	print OUT $_;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)