[clang] 7f5ca8c - [clang] Use portable "#!/usr/bin/env bash" shebang for tools and utils.

Shivam Gupta via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 23 08:48:35 PDT 2021


Author: Frederic Cambus
Date: 2021-09-23T21:16:43+05:30
New Revision: 7f5ca8cc2158debe66663f09eb19b4613e75e124

URL: https://github.com/llvm/llvm-project/commit/7f5ca8cc2158debe66663f09eb19b4613e75e124
DIFF: https://github.com/llvm/llvm-project/commit/7f5ca8cc2158debe66663f09eb19b4613e75e124.diff

LOG: [clang] Use portable "#!/usr/bin/env bash" shebang for tools and utils.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D110041

Added: 
    

Modified: 
    clang/tools/diag-build/diag-build.sh
    clang/utils/make-ast-dump-check.sh

Removed: 
    


################################################################################
diff  --git a/clang/tools/diag-build/diag-build.sh b/clang/tools/diag-build/diag-build.sh
index 018288dda9566..b1504ffcc418e 100755
--- a/clang/tools/diag-build/diag-build.sh
+++ b/clang/tools/diag-build/diag-build.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # diag-build: a tool showing enabled warnings in a project.
 #

diff  --git a/clang/utils/make-ast-dump-check.sh b/clang/utils/make-ast-dump-check.sh
index 365f227cc1c66..cb4c7924e4c3e 100755
--- a/clang/utils/make-ast-dump-check.sh
+++ b/clang/utils/make-ast-dump-check.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
 
 # This script is intended as a FileCheck replacement to update the test
 # expectations in a -ast-dump test.


        


More information about the cfe-commits mailing list