Changeset 3381
- Timestamp:
- 09/23/99 00:01:40 (14 years ago)
- Files:
-
- 1 modified
-
i2c/trunk/mkpatch/mkpatch.pl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/mkpatch/mkpatch.pl
r3374 r3381 258 258 close INPUT; 259 259 close OUTPUT; 260 die "Automatic patch generation for `drivers/Makefile' failed.\n". 261 "Contact the authors please!" if $printed == 0; 260 262 print_diff $package_root,$kernel_root,$kernel_file,$package_file; 261 263 } … … 275 277 my $i2c_present; 276 278 my $printed = 0; 279 my $added = 0; 277 280 278 281 open INPUT,"$kernel_root/$kernel_file" … … 282 285 MAIN: while(<INPUT>) { 283 286 if (m@^ALL_SUB_DIRS\s*:=@) { 287 $added = 1; 284 288 $i2c_present = 0; 285 289 while (m@\\$@) { … … 320 324 close INPUT; 321 325 close OUTPUT; 326 die "Automatic patch generation for `Makefile' failed.\n". 327 "Contact the authors please!" if $printed == 0 or $added == 0; 322 328 print_diff $package_root,$kernel_root,$kernel_file,$package_file; 323 329 } … … 383 389 close INPUT; 384 390 close OUTPUT; 391 die "Automatic patch generation for `drivers/char/Config.in' failed.\n". 392 "Contact the authors please!" if $printed == 0; 385 393 print_diff $package_root,$kernel_root,$kernel_file,$package_file; 386 394 } … … 403 411 my $done = 0; 404 412 my $atstart = 1; 413 my $pr1 = 0; 414 my $pr2 = 0; 405 415 406 416 open INPUT,"$kernel_root/$kernel_file" … … 423 433 EOF 424 434 $atstart = 0; 435 $pr1 = 1; 425 436 } 426 437 while (not $right_place and (m@CONFIG_I2C@ or m@CONFIG_VIDEO_BT848@)) { … … 445 456 EOF 446 457 $done = 1; 458 $pr2 = 1; 447 459 } 448 460 print OUTPUT; … … 450 462 close INPUT; 451 463 close OUTPUT; 464 die "Automatic patch generation for `drivers/char/mem.c' failed.\n". 465 "Contact the authors please!" if $pr1 == 0 or $pr2 == 0; 452 466 print_diff $package_root,$kernel_root,$kernel_file,$package_file; 453 467 }
