[PATCH] kbuild-2.5: make drivers/scsi/script_asm.pl hide its directory

Lightweight patch manager (patch@luckynet.dynu.com)
Sun, 2 Jun 2002 12:48:30 -0600 (MDT)


kbuild-2.5: drivers/scsi/script_asm.pl won't expose its directory any more
in the generated files

This is more or less a beautifying patch, but rather supportive.

diff -Nur kbuild-2.5/drivers/scsi/script_asm.pl kbuild-2.5/drivers/scsi/script_asm.pl
--- kbuild-2.5/drivers/scsi/script_asm.pl Sat Jun 1 16:19:36 2002
+++ kbuild-2.5/drivers/scsi/script_asm.pl Sat Jun 1 16:19:36 2002 +0000 thunder (thunder-2.5/drivers/scsi/script_asm.pl 1.1 0644)
@@ -896,7 +896,8 @@
open (OUTPUT, ">$output") || die "$0 : can't open $output for writing\n";
open (OUTPUTU, ">$outputu") || die "$0 : can't open $outputu for writing\n";

-print OUTPUT "/* DO NOT EDIT - Generated automatically by ".$0." */\n";
+($_ = $0) =~ s:.*/::;
+print OUTPUT "/* DO NOT EDIT - Generated automatically by ".$_." */\n";
print OUTPUT "static u32 ".$prefix."SCRIPT[] = {\n";
$instructions = 0;
for ($i = 0; $i < $#code; ) {

-- 
Lightweight patch manager using pine. If you have any objections, tell me.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/