chore: remplace which' by command -v'

Using `which' to test the existance of a program is deprecated in
debian. Debian recommand to use `command -v' instead.
This commit is contained in:
Fardale 2021-09-20 14:15:44 +02:00
parent fd783336b8
commit 27e39a0fc8

View file

@ -63,7 +63,7 @@ let () =
Arg.parse ["-target", Arg.Set_string target, " set target"]
(fun d -> dirs := d :: !dirs) "make.ml -target file dir+";
if !target="" then failwith "please specify a target";
if Sys.command "which qtest > /dev/null" <> 0 then (
if Sys.command "command -v qtest > /dev/null" <> 0 then (
(* create empty file *)
let out = open_out !target in
output_string out "";