Commit | Line | Data |
---|---|---|
485bce71 | 1 | open Common |
34e49164 C |
2 | |
3 | (*****************************************************************************) | |
4 | (* *) | |
5 | (*****************************************************************************) | |
6 | (* requirments: | |
7 | * - extract from one git commit, or from a set of git commits | |
8 | * - files from drivers/ and also from other directories now | |
9 | * - .c and .h, local .h and also not local .h | |
10 | * - files that were part of the patch, and so modified, but also | |
11 | * other files (especially .h) to get more type information | |
12 | * | |
13 | *) | |
14 | ||
15 | (*****************************************************************************) | |
16 | (* Flags *) | |
17 | (*****************************************************************************) | |
18 | ||
19 | (*****************************************************************************) | |
20 | (* Main entry point *) | |
21 | (*****************************************************************************) | |
22 | ||
23 | let ex_kmallocmemset = "dd00cc486ab1c17049a535413d1751ef3482141c" | |
24 | let ex_new_driver = "3faa1ffb4f4be7d10715f4b003ff7b27d14eae26" | |
25 | let ex_delete_driver = "4d8506b806cc726c96db1c1a55edfb2da52217a9" | |
26 | ||
27 | let main () = | |
28 | begin | |
29 | let args = ref [] in | |
30 | let options = [ | |
31 | ] in | |
32 | let usage_msg = | |
33 | "Usage: " ^ basename Sys.argv.(0) ^ | |
34 | " <file> [options]" ^ "\n" ^ "Options are:" | |
35 | in | |
36 | ||
37 | Arg.parse (Arg.align options) (fun x -> args := x::!args) usage_msg; | |
38 | args := List.rev !args; | |
39 | ||
40 | (match (!args) with | |
41 | | [x] -> pr x | |
42 | | _ -> Arg.usage (Arg.align options) usage_msg; | |
43 | ) | |
44 | end | |
45 | ||
46 | (*****************************************************************************) | |
47 | let _ = | |
48 | main () | |
49 |