Jbuilder: minor improvement in error reporting.

This commit is contained in:
Grégoire Henry 2017-11-15 16:57:41 +01:00 committed by Benjamin Canou
parent a7364f0ed5
commit b6b59be5fd
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ for f in ` find \( -name _build -or \
ocp-indent $f > $tmp_dir/$ff ocp-indent $f > $tmp_dir/$ff
diff -U 3 $f $tmp_dir/$ff diff -U 3 $f $tmp_dir/$ff
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
if [ $fix = "fix" ]; then if [ "$fix" = "fix" ]; then
echo "Fix indentation $f" echo "Fix indentation $f"
cp $tmp_dir/$ff $f cp $tmp_dir/$ff $f
else else

View File

@ -57,4 +57,5 @@ let () =
(deps ((glob_files *.ml) (deps ((glob_files *.ml)
(glob_files *.mli) (glob_files *.mli)
TEZOS_PROTOCOL)) TEZOS_PROTOCOL))
(action (run ${exe:../../compiler_main.exe} dummy_alpha ${path-no-dep:.})))) (action (chdir ${ROOT}
(run ${exe:../../compiler_main.exe} dummy_alpha ${path-no-dep:.})))))