From c7c94a37861d11c3fa3e3d433f465ebb301f3f06 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 21 Jul 2018 06:50:23 -0700 Subject: [PATCH] Remove an old rustfmt script. --- check-rustfmt.sh | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 check-rustfmt.sh diff --git a/check-rustfmt.sh b/check-rustfmt.sh deleted file mode 100755 index 6e8563900f..0000000000 --- a/check-rustfmt.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -# -# Usage: check-rustfmt.sh [--install] -# -# Check that the desired version of rustfmt is installed. -# -# Rustfmt is still immature enough that its formatting decisions can change -# between versions. This makes it difficult to enforce a certain style in a -# test script since not all developers will upgrade rustfmt at the same time. -# To work around this, we only verify formatting when a specific version of -# rustfmt is installed. -# -# Exits 0 if the right version of rustfmt is installed, 1 otherwise. -# -# With the --install option, also tries to install the right version. - -# This version should always be bumped to the newest version available. -VERS="0.8.4" - -if cargo install --list | grep -q "^rustfmt v$VERS"; then - exit 0 -fi - -if [ "$1" != "--install" ]; then - echo "********************************************************************" - echo "* Please install rustfmt v$VERS to verify formatting. *" - echo "* If a newer version of rustfmt is available, update this script. *" - echo "********************************************************************" - echo "$0 --install" - sleep 1 - exit 1 -fi - -echo "Installing rustfmt v$VERS." -cargo install --force --vers="$VERS" rustfmt