shebangs: use `/usr/bin/env bash` instead of `/bin/bash` for BSD compat

Currently our CI machine on FreeBSD fails to build with the following
error message:

```
bytecomp/generate_runtimedef.sh runtime/caml/fail.h runtime/primitives > bytecomp/runtimedef.ml
/bin/sh: bytecomp/generate_runtimedef.sh: not found
```

This PR converts all the files with a `/bin/bash` shebang to
`/usr/bin/env bash`. Some files use `/bin/sh` instead, and they are
unchanged. It may be the case that some 'bash' files could in fact run
using 'sh', but checking this requires more work and I decided to
follow the original author's intent.

(Personally I like using bash explicitly as it gives a consistent
programming environment that I can easily test on my machine; but this
should not be at the expense of portability.)
master
Gabriel Scherer 2018-10-16 09:06:16 +02:00
parent 72378c0ad1
commit 41c6f50ec8
9 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *
#* OCaml *

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *
#* OCaml *

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *
#* OCaml *

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#**************************************************************************
#* *