lkml.org 
[lkml]   [2002]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kbuild-2.5: make drivers/scsi/script_asm.pl hide its directory
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/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.028 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site