common: Fix bash shell script invocation

`#!/usr/bin/env bash` should be used to avoid hard paths.

To address:

  dockcross-manylinux-x64: bad interpreter: /bin/bash^M: no such file or directory
This commit is contained in:
Matt McCormick 2018-06-13 14:12:52 -04:00
parent 5ce3579933
commit ba72994b41
No known key found for this signature in database
GPG Key ID: 2E6EE54E654A512B
21 changed files with 21 additions and 21 deletions

View File

@ -302,7 +302,7 @@ Per-project dockcross configuration
If a shell script named ``.dockcross`` is found in the current directory where If a shell script named ``.dockcross`` is found in the current directory where
the dockcross script is started, it is executed before the dockcross script the dockcross script is started, it is executed before the dockcross script
``command`` argument. The shell script is expected to have a shebang like ``command`` argument. The shell script is expected to have a shebang like
``#!/bin/bash``. ``#!/usr/bin/env bash``.
For example, commands like ``git config --global advice.detachedHead false`` can For example, commands like ``git config --global advice.detachedHead false`` can
be added to this script. be added to this script.

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Configure, build and install ninja # Configure, build and install ninja

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# #
# Configure, build and install OpenSSL # Configure, build and install OpenSSL
# #

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Always pass the CMAKE_TOOLCHAIN_FILE variable to CMake when inside a # Always pass the CMAKE_TOOLCHAIN_FILE variable to CMake when inside a
# dockcross environment -- the CMAKE_TOOLCHAIN_FILE environmental variable is # dockcross environment -- the CMAKE_TOOLCHAIN_FILE environmental variable is

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# Always pass the CMAKE_TOOLCHAIN_FILE variable to CMake when inside a # Always pass the CMAKE_TOOLCHAIN_FILE variable to CMake when inside a
# dockcross environment -- the CMAKE_TOOLCHAIN_FILE environmental variable is # dockcross environment -- the CMAKE_TOOLCHAIN_FILE environmental variable is

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
DEFAULT_DOCKCROSS_IMAGE=dockcross/base # DO NOT MOVE THIS LINE (see entrypoint.sh) DEFAULT_DOCKCROSS_IMAGE=dockcross/base # DO NOT MOVE THIS LINE (see entrypoint.sh)

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# This is the entrypoint script for the dockerfile. Executed in the # This is the entrypoint script for the dockerfile. Executed in the
# container at runtime. # container at runtime.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -ex set -ex
set -o pipefail set -o pipefail

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# This script operates in a current working directory. It downloads # This script operates in a current working directory. It downloads
# "crosstool-ng", installs the base package, and then configures and installs # "crosstool-ng", installs the base package, and then configures and installs

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -ex set -ex
set -o pipefail set -o pipefail

View File

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

View File

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

View File

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

View File

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
exec ${0/${CROSS_TRIPLE}-/x86_64-linux-gnu-} --32 "$@" exec ${0/${CROSS_TRIPLE}-/x86_64-linux-gnu-} --32 "$@"

View File

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
exec ${0/*${TOOLCHAIN}-/\/usr\/bin\/x86_64-linux-gnu-} -m32 "$@" exec ${0/*${TOOLCHAIN}-/\/usr\/bin\/x86_64-linux-gnu-} -m32 "$@"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
for PIP in /opt/python/*/bin/pip; do for PIP in /opt/python/*/bin/pip; do
$PIP install --disable-pip-version-check --upgrade pip $PIP install --disable-pip-version-check --upgrade pip

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
for DIR in /opt/python/*/lib/python*/site-packages; do for DIR in /opt/python/*/lib/python*/site-packages; do
chown -R $BUILDER_UID:$BUILDER_GID $DIR chown -R $BUILDER_UID:$BUILDER_GID $DIR