Commit d5e48748 authored by thomie's avatar thomie Committed by Austin Seipp

Change all hashbangs to /usr/bin/env (#9057)

Summary:
```
git grep -l '#!' | xargs sed -i 's|#!.*/bin/\([^ ]*\)$|#!/usr/bin/env \1|'
```
and some manual tweaking

Test Plan: harbormaster

Reviewers: austin

Subscribers: hvr, simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D237

GHC Trac Issues: #9057
parent 330bb3ef
#! /usr/local/bin/perl #!/usr/bin/env perl
# #
%DirCount = (); %DirCount = ();
%ModCount = (); %ModCount = ();
......
#! /bin/bash #!/usr/bin/env bash
# This script can be used to generate some unregisterised .hc files # This script can be used to generate some unregisterised .hc files
# for bootstrapping GHC on a new/unsupported platform. It involves a # for bootstrapping GHC on a new/unsupported platform. It involves a
......
#!/usr/bin/runhaskell #!/usr/bin/env runhaskell
> module Main where > module Main where
> import Distribution.Simple > import Distribution.Simple
> main :: IO () > main :: IO ()
......
#! /usr/bin/perl #!/usr/bin/env perl
\begin{code} \begin{code}
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
-- runghc program, for invoking from a #! line in a script. For example: -- runghc program, for invoking from a #! line in a script. For example:
-- --
-- script.lhs: -- script.lhs:
-- #!/usr/bin/env /usr/bin/runghc -- #!/usr/bin/env runghc
-- > main = putStrLn "hello!" -- > main = putStrLn "hello!"
-- --
-- runghc accepts one flag: -- runghc accepts one flag:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment