Skip to content

Commit f68e5ff

Browse files
committed
snapshot
1 parent 29f5200 commit f68e5ff

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

lib/4.06.1/bsb.ml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3954,7 +3954,7 @@ type file_group =
39543954
sources : Bsb_db.t;
39553955
resources : string list ;
39563956
public : public ;
3957-
dir_index : bool ; (* false means not in dev mode *)
3957+
dev_index : bool ; (* false means not in dev mode *)
39583958
generators : build_generator list ;
39593959
(* output of [generators] should be added to [sources],
39603960
if it is [.ml,.mli,.re,.rei]
@@ -4031,7 +4031,7 @@ type file_group =
40314031
sources : Bsb_db.t;
40324032
resources : string list ;
40334033
public : public ;
4034-
dir_index : bool ;
4034+
dev_index : bool ;
40354035
generators : build_generator list ;
40364036
(* output of [generators] should be added to [sources],
40374037
if it is [.ml,.mli,.re,.rei]
@@ -10474,7 +10474,7 @@ let errorf x fmt =
1047410474

1047510475
type cxt = {
1047610476
toplevel : bool ;
10477-
dir_index : bool;
10477+
dev_index : bool;
1047810478
cwd : string ;
1047910479
root : string;
1048010480
cut_generators : bool;
@@ -10768,18 +10768,18 @@ let rec
1076810768
sources = sources;
1076910769
resources ;
1077010770
public ;
10771-
dir_index = cxt.dir_index ;
10771+
dev_index = cxt.dev_index ;
1077210772
generators = if has_generators then scanned_generators else [] }
1077310773
?globbed_dir:(
1077410774
if !cur_globbed_dirs then Some dir else None)
1077510775
children
1077610776

1077710777

10778-
and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_types.t )
10778+
and parsing_single_source ({toplevel; dev_index ; cwd} as cxt ) (x : Ext_json_types.t )
1077910779
: t =
1078010780
match x with
1078110781
| Str { str = dir } ->
10782-
if not toplevel && dir_index then
10782+
if not toplevel && dev_index then
1078310783
Bsb_file_groups.empty
1078410784
else
1078510785
parsing_source_dir_map
@@ -10792,7 +10792,7 @@ and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_ty
1079210792
| Some (Str {str="dev"}) ->
1079310793
true
1079410794
| Some _ -> Bsb_exception.config_error x {|type field expect "dev" literal |}
10795-
| None -> dir_index in
10795+
| None -> dev_index in
1079610796
if not toplevel && current_dir_index then
1079710797
Bsb_file_groups.empty
1079810798
else
@@ -10808,7 +10808,7 @@ and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_ty
1080810808

1080910809
in
1081010810
parsing_source_dir_map
10811-
{cxt with dir_index = current_dir_index;
10811+
{cxt with dev_index = current_dir_index;
1081210812
cwd= Ext_path.concat cwd dir} map
1081310813
| _ -> Bsb_file_groups.empty
1081410814
and parsing_arr_sources cxt (file_groups : Ext_json_types.t array) =
@@ -10834,7 +10834,7 @@ let scan
1083410834
parse_sources {
1083510835
ignored_dirs;
1083610836
toplevel;
10837-
dir_index = false;
10837+
dev_index = false;
1083810838
cwd = Filename.current_dir_name;
1083910839
root ;
1084010840
cut_generators;
@@ -13449,7 +13449,7 @@ let handle_files_per_dir
1344913449
module_info.name_sans_extension;
1345013450
emit_module_build rules
1345113451
package_specs
13452-
group.dir_index
13452+
group.dev_index
1345313453
oc
1345413454
~bs_suffix
1345513455
js_post_build_cmd
@@ -13668,9 +13668,9 @@ let output_ninja_and_namespace_map
1366813668
let bs_groups = Array.init 2 (fun _ -> Map_string.empty) in
1366913669
let source_dirs = Array.init 2 (fun _ -> []) in
1367013670
let static_resources =
13671-
Ext_list.fold_left bs_file_groups [] (fun (acc_resources : string list) {sources; dir; resources; dir_index}
13671+
Ext_list.fold_left bs_file_groups [] (fun (acc_resources : string list) {sources; dir; resources; dev_index}
1367213672
->
13673-
let dir_index = if dir_index then 1 else 0 in
13673+
let dir_index = if dev_index then 1 else 0 in
1367413674
bs_groups.(dir_index) <- Bsb_db_util.merge bs_groups.(dir_index) sources ;
1367513675
source_dirs.(dir_index) <- dir :: source_dirs.(dir_index);
1367613676
Ext_list.map_append resources acc_resources (fun x -> dir//x)

lib/4.06.1/unstable/bsb_native.ml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3954,7 +3954,7 @@ type file_group =
39543954
sources : Bsb_db.t;
39553955
resources : string list ;
39563956
public : public ;
3957-
dir_index : bool ; (* false means not in dev mode *)
3957+
dev_index : bool ; (* false means not in dev mode *)
39583958
generators : build_generator list ;
39593959
(* output of [generators] should be added to [sources],
39603960
if it is [.ml,.mli,.re,.rei]
@@ -4031,7 +4031,7 @@ type file_group =
40314031
sources : Bsb_db.t;
40324032
resources : string list ;
40334033
public : public ;
4034-
dir_index : bool ;
4034+
dev_index : bool ;
40354035
generators : build_generator list ;
40364036
(* output of [generators] should be added to [sources],
40374037
if it is [.ml,.mli,.re,.rei]
@@ -10506,7 +10506,7 @@ let errorf x fmt =
1050610506

1050710507
type cxt = {
1050810508
toplevel : bool ;
10509-
dir_index : bool;
10509+
dev_index : bool;
1051010510
cwd : string ;
1051110511
root : string;
1051210512
cut_generators : bool;
@@ -10800,18 +10800,18 @@ let rec
1080010800
sources = sources;
1080110801
resources ;
1080210802
public ;
10803-
dir_index = cxt.dir_index ;
10803+
dev_index = cxt.dev_index ;
1080410804
generators = if has_generators then scanned_generators else [] }
1080510805
?globbed_dir:(
1080610806
if !cur_globbed_dirs then Some dir else None)
1080710807
children
1080810808

1080910809

10810-
and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_types.t )
10810+
and parsing_single_source ({toplevel; dev_index ; cwd} as cxt ) (x : Ext_json_types.t )
1081110811
: t =
1081210812
match x with
1081310813
| Str { str = dir } ->
10814-
if not toplevel && dir_index then
10814+
if not toplevel && dev_index then
1081510815
Bsb_file_groups.empty
1081610816
else
1081710817
parsing_source_dir_map
@@ -10824,7 +10824,7 @@ and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_ty
1082410824
| Some (Str {str="dev"}) ->
1082510825
true
1082610826
| Some _ -> Bsb_exception.config_error x {|type field expect "dev" literal |}
10827-
| None -> dir_index in
10827+
| None -> dev_index in
1082810828
if not toplevel && current_dir_index then
1082910829
Bsb_file_groups.empty
1083010830
else
@@ -10840,7 +10840,7 @@ and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_ty
1084010840

1084110841
in
1084210842
parsing_source_dir_map
10843-
{cxt with dir_index = current_dir_index;
10843+
{cxt with dev_index = current_dir_index;
1084410844
cwd= Ext_path.concat cwd dir} map
1084510845
| _ -> Bsb_file_groups.empty
1084610846
and parsing_arr_sources cxt (file_groups : Ext_json_types.t array) =
@@ -10866,7 +10866,7 @@ let scan
1086610866
parse_sources {
1086710867
ignored_dirs;
1086810868
toplevel;
10869-
dir_index = false;
10869+
dev_index = false;
1087010870
cwd = Filename.current_dir_name;
1087110871
root ;
1087210872
cut_generators;
@@ -13598,7 +13598,7 @@ let handle_files_per_dir
1359813598
module_info.name_sans_extension;
1359913599
emit_module_build rules
1360013600
package_specs
13601-
group.dir_index
13601+
group.dev_index
1360213602
oc
1360313603
~bs_suffix
1360413604
js_post_build_cmd
@@ -13817,9 +13817,9 @@ let output_ninja_and_namespace_map
1381713817
let bs_groups = Array.init 2 (fun _ -> Map_string.empty) in
1381813818
let source_dirs = Array.init 2 (fun _ -> []) in
1381913819
let static_resources =
13820-
Ext_list.fold_left bs_file_groups [] (fun (acc_resources : string list) {sources; dir; resources; dir_index}
13820+
Ext_list.fold_left bs_file_groups [] (fun (acc_resources : string list) {sources; dir; resources; dev_index}
1382113821
->
13822-
let dir_index = if dir_index then 1 else 0 in
13822+
let dir_index = if dev_index then 1 else 0 in
1382313823
bs_groups.(dir_index) <- Bsb_db_util.merge bs_groups.(dir_index) sources ;
1382413824
source_dirs.(dir_index) <- dir :: source_dirs.(dir_index);
1382513825
Ext_list.map_append resources acc_resources (fun x -> dir//x)

0 commit comments

Comments
 (0)