Changeset 3821

Show
Ignore:
Timestamp:
07/11/03 10:29:50 (10 years ago)
Author:
khali
Message:

Use -w, warning removal.

Support nonexistent source files (required to remove i2c-elektor.h
from the kernel tree.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/branches/lk2-4/mkpatch/mkpatch.pl

    r3805 r3821  
    1 #!/usr/bin/perl 
     1#!/usr/bin/perl -w 
    22 
    33#    mkpatch - Create patches against the Linux kernel 
     
    120120           or die "Can't open `$package_root/$temp'"; 
    121121    while (<INPUT>) { 
    122       s@(\s*#\s*include\s*)<linux/i2c.h>@\1<linux/i2c-old.h>@; 
     122      s@(\s*#\s*include\s*)<linux/i2c.h>@$1<linux/i2c-old.h>@; 
    123123      print OUTPUT; 
    124124    } 
     
    803803    ($data0,$data1) = /(\S+)\s+(\S+)/; 
    804804    $includes{$data0} = $data1; 
    805     $sedscript .= 's,(#\s*include\s*)'.$data0.'(\s*),\1'."$data1".'\2, ; '; 
     805    $sedscript .= 's,(#\s*include\s*)'.$data0.'(\s*),$1'."$data1".'$2, ; '; 
    806806  }  
    807807  close INPUT; 
     
    812812    @sensors_subs = find_sensors_code "$kernel_root","$kernel_file"; 
    813813    open INPUT, "$package_root/$package_file" 
     814      or open INPUT, "/dev/null" 
    814815         or die "Can't open `$package_root/$package_file'"; 
    815816    open OUTPUT, ">$package_root/$temp"