Changeset 4162
- Timestamp:
- 09/20/06 16:23:22 (2 years ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (1 diff)
- lm-sensors/trunk/mkpatch/mkpatch.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r4159 r4162 50 50 Add new mode W (read word on even register addresses) 51 51 Program mkpatch: Fix typo breaking f71805f 52 Turn warnings on (-w), and fix them 53 Print a usage message on missing command line parameters 52 54 Program pwmconfig: Use mktemp instead of tempfile 53 55 Program sensors: No error messages on missing w83792d fan4-7 (Yuan Mu) lm-sensors/trunk/mkpatch/mkpatch.pl
r4160 r4162 1 #!/usr/bin/perl 1 #!/usr/bin/perl -w 2 2 3 3 # mkpatch - Create patches against the Linux kernel … … 1251 1251 1252 1252 1253 sub usage 1254 { 1255 print "Usage: $0 package_root kernel_root\n"; 1256 exit 1; 1257 } 1258 1253 1259 # Main function 1254 1260 sub main … … 1257 1263 my ($diff_command,$dummy,$data0,$data1,$sedscript,$version_string); 1258 1264 1259 # --> Read the command-line o1265 # --> Read the command-line 1260 1266 $package_root = $ARGV[0]; 1267 usage() unless defined $package_root; 1261 1268 die "Package root `$package_root' is not found\n" 1262 1269 unless -d "$package_root/mkpatch"; 1263 1270 $kernel_root = $ARGV[1]; 1271 usage() unless defined $kernel_root; 1264 1272 die "Kernel root `$kernel_root' is not found\n" 1265 1273 unless -f "$kernel_root/Rules.make"; … … 1280 1288 ($data0,$data1) = /(\S+)\s+(\S+)/; 1281 1289 $includes{$data0} = $data1; 1282 $sedscript .= 's,(#\s*include\s*)'.$data0.'(\s*), \1'."$data1".'\2, ; ';1290 $sedscript .= 's,(#\s*include\s*)'.$data0.'(\s*),$1'."$data1".'$2, ; '; 1283 1291 } 1284 1292 close INPUT;
