From 8910c0a20c8a55aa97734610e50d33ef2500c472 Mon Sep 17 00:00:00 2001 From: Josh Berdine Date: Mon, 3 Jun 2019 06:56:19 -0700 Subject: [PATCH] [ocamlformat] Remove dead shim script Reviewed By: katiejots, jvillard Differential Revision: D15601755 fbshipit-source-id: 417b5d0a1 --- scripts/ocamlformat_shim.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 scripts/ocamlformat_shim.sh diff --git a/scripts/ocamlformat_shim.sh b/scripts/ocamlformat_shim.sh deleted file mode 100755 index 312db222f..000000000 --- a/scripts/ocamlformat_shim.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2017-present, Facebook, Inc. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -# Run ocamlformat, installing the required version via opam if necessary. - -set -x -set -e - -TARGET_VERSION=$(grep version .ocamlformat | cut -d ' ' -f 2) - -if [ -z $TARGET_VERSION ] -then - echo "Could not find .ocamlformat file containing version" - exit 1 -fi - -if [ ! -x "$(command -v ocamlformat)" ] || - [ "$TARGET_VERSION" != "$(ocamlformat --version)" ] -then - opam install "ocamlformat.$TARGET_VERSION" -fi - -ocamlformat "$@"