]> granicus.if.org Git - clang/commitdiff
Use /usr/bin/env python instead of /usr/bin/python.
authorEd Schouten <ed@80386.nl>
Tue, 2 Sep 2014 20:59:13 +0000 (20:59 +0000)
committerEd Schouten <ed@80386.nl>
Tue, 2 Sep 2014 20:59:13 +0000 (20:59 +0000)
On operating systems like the BSDs, it is typically the case that
/usr/bin/python does not exist. We should therefore use /usr/bin/env
instead. This is also done in various other scripts in tools/.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216945 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-format/clang-format-diff.py
tools/clang-format/git-clang-format

index d6d0d44a06bb29278373000e7835c154bb299ef8..b896ffce932bd036c7fe24f636d763507fa0bd88 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
 #
index c40b74dae4ba1a06a702a75f3e21ff78432d49b5..6a0db27fa9f62276bf5ee1316cb714ec3b570f10 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
 #