Skip to content

Commit

Permalink
[#!] #!/bin/sh -> #!/usr/bin/env sh
Browse files Browse the repository at this point in the history
find . \
    -type f \
    -not -iwholename '*.git*' \
    -exec sed -i -e 'sW#!\s*/bin/shW#!/usr/bin/env shWg' {} \;
  • Loading branch information
mpoquet committed Feb 1, 2018
1 parent 7eba80a commit 8dbe205
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion BuildSimGrid.sh
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh
#
# This little script rebuilds and runs the SimGrid archive in parallel, extracting a log
# This is almost an internal script, but others may find this useful
Expand Down
2 changes: 1 addition & 1 deletion INSTALL
Expand Up @@ -196,7 +196,7 @@ cmake . \
-DGFORTRAN_EXE=/some/path/to/i686-linux-gnu-gfortran \
-DCMAKE_Fortran_FLAGS=-m32
If needed, implement i686-linux-gnu-gfortran as a script:
#!/bin/sh
#!/usr/bin/env sh
exec gfortran -m32 "$@"

Existing Compilation Targets
Expand Down
2 changes: 1 addition & 1 deletion doc/doxygen/install.doc
Expand Up @@ -345,7 +345,7 @@ cmake . \
If needed, implement @c i686-linux-gnu-gfortran as a script:

@verbatim
#!/bin/sh
#!/usr/bin/env sh
exec gfortran -m32 "$@"
@endverbatim

Expand Down
2 changes: 1 addition & 1 deletion examples/msg/mc/bugged1_liveness_stack_cleaner
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Run the same test compiled with -fstack-cleaner / f-no-stack-cleaner
# and compare the output.

Expand Down
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh

# Copyright (c) 2007-2017. The SimGrid Team. All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion src/smpi/smpicc.in
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh

# Copyright (c) 2007-2017. The SimGrid Team.
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion src/smpi/smpicxx.in
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh

# Copyright (c) 2014-2017. The SimGrid Team.
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion src/smpi/smpif90.in
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh

# Copyright (c) 2012-2017. The SimGrid Team.
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion src/smpi/smpiff.in
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh

# Copyright (c) 2012-2017. The SimGrid Team.
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion src/smpi/smpirun.in
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh

# Copyright (c) 2007-2016, The SimGrid Team. All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion src/smpi/smpitools.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# Copyright (c) 2013-2017. The SimGrid Team.
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tools/doxygen/list_routing_models_examples.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

cd $(dirname $0)/../../

Expand Down
2 changes: 1 addition & 1 deletion tools/generate-dwarf-functions
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Generate files from a given dwarf.h
# Usage: tools/generate-dwarf-functions /usr/include/dwarf.h

Expand Down
2 changes: 1 addition & 1 deletion tools/internal/travis-sonarqube.sh
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env sh

# Install and run SonarQube on travis.
#
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/Coverage.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

set -e

Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/DynamicAnalysis.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

set -e

Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/DynamicAnalysis_description.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

set -e

Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/Flags.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

set -e

Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/Sanitizers.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

set -e

Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/build.sh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# This script is used by various build projects on Jenkins

Expand Down
2 changes: 1 addition & 1 deletion tools/stack-cleaner/c++
@@ -1,3 +1,3 @@
#!/bin/sh
#!/usr/bin/env sh
path="$(dirname $0)"
exec "$path"/compiler-wrapper c++ "$@"
2 changes: 1 addition & 1 deletion tools/stack-cleaner/cc
@@ -1,3 +1,3 @@
#!/bin/sh
#!/usr/bin/env sh
path="$(dirname $0)"
exec "$path"/compiler-wrapper cc "$@"
2 changes: 1 addition & 1 deletion tools/stack-cleaner/fortran
@@ -1,3 +1,3 @@
#!/bin/sh
#!/usr/bin/env sh
path="$(dirname $0)"
exec "$path"/compiler-wrapper gfortran "$@"
2 changes: 1 addition & 1 deletion tools/tesh/generate_tesh
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Generate a tesh file from a given command (simple case).

command="$1"
Expand Down
2 changes: 1 addition & 1 deletion tools/tesh/tesh.py
Expand Up @@ -296,7 +296,7 @@ def replace_perl_variables(m):
tesh_exit(3)
except OSError as osE:
if osE.errno == 8:
osE.strerror += "\nOSError: [Errno 8] Executed scripts should start with shebang line (like #!/bin/sh)"
osE.strerror += "\nOSError: [Errno 8] Executed scripts should start with shebang line (like #!/usr/bin/env sh)"
raise osE

cmdName = FileReader().filename+":"+str(self.linenumber)
Expand Down

0 comments on commit 8dbe205

Please sign in to comment.