Changeset 3821
- Timestamp:
- 07/11/03 10:29:50 (10 years ago)
- Files:
-
- 1 modified
-
i2c/branches/lk2-4/mkpatch/mkpatch.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/branches/lk2-4/mkpatch/mkpatch.pl
r3805 r3821 1 #!/usr/bin/perl 1 #!/usr/bin/perl -w 2 2 3 3 # mkpatch - Create patches against the Linux kernel … … 120 120 or die "Can't open `$package_root/$temp'"; 121 121 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>@; 123 123 print OUTPUT; 124 124 } … … 803 803 ($data0,$data1) = /(\S+)\s+(\S+)/; 804 804 $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, ; '; 806 806 } 807 807 close INPUT; … … 812 812 @sensors_subs = find_sensors_code "$kernel_root","$kernel_file"; 813 813 open INPUT, "$package_root/$package_file" 814 or open INPUT, "/dev/null" 814 815 or die "Can't open `$package_root/$package_file'"; 815 816 open OUTPUT, ">$package_root/$temp"
