OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "courgette/courgette.h" | 17 #include "courgette/courgette.h" |
18 #include "courgette/streams.h" | 18 #include "courgette/streams.h" |
19 #include "courgette/third_party/bsdiff.h" | 19 #include "courgette/third_party/bsdiff.h" |
20 | 20 |
21 | 21 |
22 void PrintHelp() { | 22 void PrintHelp() { |
23 fprintf(stderr, | 23 fprintf(stderr, |
24 "Usage:\n" | 24 "Usage:\n" |
25 " courgette -supported <executable_file>\n" | 25 " courgette -supported <executable_file>\n" |
26 " courgette -dis <executable_file> <binary_assembly_file>\n" | 26 " courgette -dis <executable_file> <binary_assembly_file>\n" |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 UsageProblem("-gen1[au] <old_file> <new_file> <patch_files_root>"); | 499 UsageProblem("-gen1[au] <old_file> <new_file> <patch_files_root>"); |
500 DisassembleAdjustDiff(values[0], values[1], values[2], | 500 DisassembleAdjustDiff(values[0], values[1], values[2], |
501 cmd_spread_1_adjusted); | 501 cmd_spread_1_adjusted); |
502 } else { | 502 } else { |
503 UsageProblem("No operation specified"); | 503 UsageProblem("No operation specified"); |
504 } | 504 } |
505 } | 505 } |
506 | 506 |
507 return 0; | 507 return 0; |
508 } | 508 } |
OLD | NEW |