]> git.hungrycats.org Git - linux/commitdiff
kbuild:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 5 Jun 2002 14:51:41 +0000 (09:51 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 5 Jun 2002 14:51:41 +0000 (09:51 -0500)
Remove absolute path in output of drivers/scsi/script_asm.pl
Extracted from Keith Owens' kbuild-2.5 by patch@luckynet.dynu.com.

drivers/scsi/script_asm.pl

index 4038c74f27285b998bfc7d27f0dbabde410ec5d4..f5d3e286f10839655f2efb3975cc7c6c68f37e3b 100644 (file)
@@ -896,7 +896,8 @@ foreach $label (@label) {
 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; ) {