diff --git a/dune b/dune index 97e3f6362..fcc03bede 100644 --- a/dune +++ b/dune @@ -1,11 +1,3 @@ -(executable - (libraries unix) - (name gen_commit)) - -(rule - (targets COMMIT) - (action (with-outputs-to %{targets} (run git rev-parse HEAD)))) - (rule (target deps.csv) (deps vpnkit.opam) diff --git a/gen_commit.ml b/gen_commit.ml deleted file mode 100644 index 20232534c..000000000 --- a/gen_commit.ml +++ /dev/null @@ -1,18 +0,0 @@ -(* Generate the artifact COMMIT which stores the source commit sha *) -let usage_msg = "gen_commit -o " -let output_file = ref "COMMIT" - -let speclist = - [("-o", Arg.Set_string output_file, "Set output file name")] - -let other_arg name = Printf.fprintf stderr "ignoring unexpected argument %s" name - -let () = - Arg.parse speclist other_arg usage_msg; - (* Avoid using Unix shell features like redirection *) - let ic = Unix.open_process_in "git rev-parse HEAD" in - let commit = input_line ic in - let oc = open_out !output_file in - output_string oc commit; - close_out oc; - close_in ic diff --git a/scripts/appveyor.sh b/scripts/appveyor.sh index 53b752bd4..8b2b9f430 100755 --- a/scripts/appveyor.sh +++ b/scripts/appveyor.sh @@ -4,7 +4,6 @@ set -e cd "${APPVEYOR_BUILD_FOLDER}" -opam exec -- dune build COMMIT opam exec -- dune build licenses.json opam exec -- dune build vpnkit.exe opam exec -- dune test