From 1741dddf6dda56ce6480775e37d9a9c90e371686 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Thu, 19 Aug 2021 09:45:08 -0700 Subject: [PATCH] Remove format scripts --- Format.cmd | 2 -- eng/format.ps1 | 4 ---- eng/format.sh | 5 ----- format.sh | 16 ---------------- 4 files changed, 27 deletions(-) delete mode 100644 Format.cmd delete mode 100644 eng/format.ps1 delete mode 100644 eng/format.sh delete mode 100644 format.sh diff --git a/Format.cmd b/Format.cmd deleted file mode 100644 index bf622551083fa..0000000000000 --- a/Format.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\format.ps1""" %*" diff --git a/eng/format.ps1 b/eng/format.ps1 deleted file mode 100644 index 526c34a75e4c6..0000000000000 --- a/eng/format.ps1 +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) .NET Foundation and contributors. All rights reserved. -# Licensed under the MIT license. See LICENSE file in the project root for full license information. - -dotnet tool run dotnet-format $Args \ No newline at end of file diff --git a/eng/format.sh b/eng/format.sh deleted file mode 100644 index 746aa981a9634..0000000000000 --- a/eng/format.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) .NET Foundation and contributors. All rights reserved. -# Licensed under the MIT license. See LICENSE file in the project root for full license information. - -dotnet tool run dotnet-format $@ \ No newline at end of file diff --git a/format.sh b/format.sh deleted file mode 100644 index 61a890823dea3..0000000000000 --- a/format.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -source="${BASH_SOURCE[0]}" - -# resolve $SOURCE until the file is no longer a symlink -while [[ -h $source ]]; do - scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" - source="$(readlink "$source")" - - # if $source was a relative symlink, we need to resolve it relative to the path where the - # symlink file was located - [[ $source != /* ]] && source="$scriptroot/$source" -done - -scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" -"$scriptroot/eng/format.sh" $@ \ No newline at end of file