|
1 |
| -module Bs_version : sig |
2 |
| -#1 "bs_version.mli" |
3 |
| -(* Copyright (C) 2015-2016 Bloomberg Finance L.P. |
4 |
| - * |
5 |
| - * This program is free software: you can redistribute it and/or modify |
6 |
| - * it under the terms of the GNU Lesser General Public License as published by |
7 |
| - * the Free Software Foundation, either version 3 of the License, or |
8 |
| - * (at your option) any later version. |
9 |
| - * |
10 |
| - * In addition to the permissions granted to you by the LGPL, you may combine |
11 |
| - * or link a "work that uses the Library" with a publicly distributed version |
12 |
| - * of this file to produce a combined library or application, then distribute |
13 |
| - * that combined work under the terms of your choosing, with no requirement |
14 |
| - * to comply with the obligations normally placed on you by section 4 of the |
15 |
| - * LGPL version 3 (or the corresponding section of a later version of the LGPL |
16 |
| - * should you choose to use a later version). |
17 |
| - * |
18 |
| - * This program is distributed in the hope that it will be useful, |
19 |
| - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 |
| - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 |
| - * GNU Lesser General Public License for more details. |
22 |
| - * |
23 |
| - * You should have received a copy of the GNU Lesser General Public License |
24 |
| - * along with this program; if not, write to the Free Software |
25 |
| - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) |
26 |
| - |
27 |
| -val version : string |
28 |
| - |
29 |
| -val header : string |
30 |
| - |
31 |
| -val package_name : string ref |
32 |
| -end = struct |
33 |
| -#1 "bs_version.ml" |
34 |
| - |
35 |
| -(* Copyright (C) 2015-2016 Bloomberg Finance L.P. |
36 |
| - * |
37 |
| - * This program is free software: you can redistribute it and/or modify |
38 |
| - * it under the terms of the GNU Lesser General Public License as published by |
39 |
| - * the Free Software Foundation, either version 3 of the License, or |
40 |
| - * (at your option) any later version. |
41 |
| - * |
42 |
| - * In addition to the permissions granted to you by the LGPL, you may combine |
43 |
| - * or link a "work that uses the Library" with a publicly distributed version |
44 |
| - * of this file to produce a combined library or application, then distribute |
45 |
| - * that combined work under the terms of your choosing, with no requirement |
46 |
| - * to comply with the obligations normally placed on you by section 4 of the |
47 |
| - * LGPL version 3 (or the corresponding section of a later version of the LGPL |
48 |
| - * should you choose to use a later version). |
49 |
| - * |
50 |
| - * This program is distributed in the hope that it will be useful, |
51 |
| - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
52 |
| - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
53 |
| - * GNU Lesser General Public License for more details. |
54 |
| - * |
55 |
| - * You should have received a copy of the GNU Lesser General Public License |
56 |
| - * along with this program; if not, write to the Free Software |
57 |
| - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) |
58 |
| -let version = "9.1.0" |
59 |
| -let header = |
60 |
| - "// Generated by ReScript, PLEASE EDIT WITH CARE" |
61 |
| -let package_name = ref "bs-platform" |
62 |
| - |
63 |
| -end |
64 | 1 | module Ext_array : sig
|
65 | 2 | #1 "ext_array.mli"
|
66 | 3 | (* Copyright (C) 2015-2016 Bloomberg Finance L.P.
|
@@ -5942,6 +5879,69 @@ let proj_rel path = rev_lib_bs // path
|
5942 | 5879 | (* let cmd_package_specs = ref None *)
|
5943 | 5880 |
|
5944 | 5881 |
|
| 5882 | +end |
| 5883 | +module Bs_version : sig |
| 5884 | +#1 "bs_version.mli" |
| 5885 | +(* Copyright (C) 2015-2016 Bloomberg Finance L.P. |
| 5886 | + * |
| 5887 | + * This program is free software: you can redistribute it and/or modify |
| 5888 | + * it under the terms of the GNU Lesser General Public License as published by |
| 5889 | + * the Free Software Foundation, either version 3 of the License, or |
| 5890 | + * (at your option) any later version. |
| 5891 | + * |
| 5892 | + * In addition to the permissions granted to you by the LGPL, you may combine |
| 5893 | + * or link a "work that uses the Library" with a publicly distributed version |
| 5894 | + * of this file to produce a combined library or application, then distribute |
| 5895 | + * that combined work under the terms of your choosing, with no requirement |
| 5896 | + * to comply with the obligations normally placed on you by section 4 of the |
| 5897 | + * LGPL version 3 (or the corresponding section of a later version of the LGPL |
| 5898 | + * should you choose to use a later version). |
| 5899 | + * |
| 5900 | + * This program is distributed in the hope that it will be useful, |
| 5901 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 5902 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 5903 | + * GNU Lesser General Public License for more details. |
| 5904 | + * |
| 5905 | + * You should have received a copy of the GNU Lesser General Public License |
| 5906 | + * along with this program; if not, write to the Free Software |
| 5907 | + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) |
| 5908 | + |
| 5909 | +val version : string |
| 5910 | + |
| 5911 | +val header : string |
| 5912 | + |
| 5913 | +val package_name : string ref |
| 5914 | +end = struct |
| 5915 | +#1 "bs_version.ml" |
| 5916 | + |
| 5917 | +(* Copyright (C) 2015-2016 Bloomberg Finance L.P. |
| 5918 | + * |
| 5919 | + * This program is free software: you can redistribute it and/or modify |
| 5920 | + * it under the terms of the GNU Lesser General Public License as published by |
| 5921 | + * the Free Software Foundation, either version 3 of the License, or |
| 5922 | + * (at your option) any later version. |
| 5923 | + * |
| 5924 | + * In addition to the permissions granted to you by the LGPL, you may combine |
| 5925 | + * or link a "work that uses the Library" with a publicly distributed version |
| 5926 | + * of this file to produce a combined library or application, then distribute |
| 5927 | + * that combined work under the terms of your choosing, with no requirement |
| 5928 | + * to comply with the obligations normally placed on you by section 4 of the |
| 5929 | + * LGPL version 3 (or the corresponding section of a later version of the LGPL |
| 5930 | + * should you choose to use a later version). |
| 5931 | + * |
| 5932 | + * This program is distributed in the hope that it will be useful, |
| 5933 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 5934 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 5935 | + * GNU Lesser General Public License for more details. |
| 5936 | + * |
| 5937 | + * You should have received a copy of the GNU Lesser General Public License |
| 5938 | + * along with this program; if not, write to the Free Software |
| 5939 | + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) |
| 5940 | +let version = "9.1.0" |
| 5941 | +let header = |
| 5942 | + "// Generated by ReScript, PLEASE EDIT WITH CARE" |
| 5943 | +let package_name = ref "bs-platform" |
| 5944 | + |
5945 | 5945 | end
|
5946 | 5946 | module Bsb_pkg_types : sig
|
5947 | 5947 | #1 "bsb_pkg_types.mli"
|
@@ -16597,11 +16597,7 @@ let watch_mode = ref false
|
16597 | 16597 | let make_world = ref false
|
16598 | 16598 | let do_install = ref false
|
16599 | 16599 | let force_regenerate = ref false
|
16600 |
| -let bs_version_string = Bs_version.version |
16601 |
| -let print_version_string () = |
16602 |
| - print_string bs_version_string; |
16603 |
| - print_newline (); |
16604 |
| - exit 0 |
| 16600 | + |
16605 | 16601 | type spec = Bsb_arg.spec
|
16606 | 16602 |
|
16607 | 16603 | let call_spec f : spec = Unit (Unit_call f )
|
@@ -16682,17 +16678,7 @@ let install_target () =
|
16682 | 16678 | if eid <> 0 then
|
16683 | 16679 | Bsb_unix.command_fatal_error install_command eid
|
16684 | 16680 |
|
16685 |
| -let global_help () = |
16686 |
| - print_string {|Available flags |
16687 |
| --v, -version display version number |
16688 |
| --h, -help display help |
16689 |
| -Subcommands: |
16690 |
| - build |
16691 |
| - clean |
16692 |
| - help |
16693 |
| -Run rescript subcommand -h for more details, for example |
16694 |
| - rescript build -h |
16695 |
| -|} |
| 16681 | + |
16696 | 16682 |
|
16697 | 16683 | let build_subcommand ~start argv argv_len =
|
16698 | 16684 | let i = Ext_array.rfind_with_index argv Ext_string.equal separator in
|
@@ -16810,23 +16796,15 @@ let () =
|
16810 | 16796 | ~per_proj_dir:Bsb_global_paths.cwd |> ignore;
|
16811 | 16797 | ninja_command_exit [||]
|
16812 | 16798 | end else
|
16813 |
| - |
16814 |
| - |
16815 |
| - |
16816 | 16799 | match argv.(1) with
|
16817 |
| - | "-version" | "-v" |
16818 |
| - -> print_version_string () |
16819 |
| - | "-help" | "-h" |
16820 |
| - -> global_help () |
16821 | 16800 | | "build" ->
|
16822 | 16801 | build_subcommand ~start:2 argv argv_len
|
16823 | 16802 | | "clean" ->
|
16824 | 16803 | clean_subcommand ~start:2 argv
|
16825 | 16804 | | "init" ->
|
16826 | 16805 | init_subcommand ~start:2 argv
|
16827 |
| - | "info" -> |
| 16806 | + | "info" -> (* internal *) |
16828 | 16807 | info_subcommand ~start:2 argv
|
16829 |
| - | "help" -> global_help () |
16830 | 16808 | | first_arg ->
|
16831 | 16809 | prerr_endline @@ "Unknown subcommand or flags: " ^ first_arg;
|
16832 | 16810 | exit 1
|
|
0 commit comments