Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[#!] #!/bin/sh -> #!/usr/bin/env sh
authorMillian Poquet <millian.poquet@inria.fr>
Thu, 1 Feb 2018 10:44:04 +0000 (11:44 +0100)
committerMillian Poquet <millian.poquet@inria.fr>
Thu, 1 Feb 2018 10:44:04 +0000 (11:44 +0100)
find . \
    -type f \
    -not -iwholename '*.git*' \
    -exec sed -i -e 'sW#!\s*/bin/shW#!/usr/bin/env shWg' {} \;

25 files changed:
BuildSimGrid.sh
INSTALL
doc/doxygen/install.doc
examples/msg/mc/bugged1_liveness_stack_cleaner
examples/smpi/replay_multiple/generate_multiple_deployment.sh
src/smpi/smpicc.in
src/smpi/smpicxx.in
src/smpi/smpif90.in
src/smpi/smpiff.in
src/smpi/smpirun.in
src/smpi/smpitools.sh
tools/doxygen/list_routing_models_examples.sh
tools/generate-dwarf-functions
tools/internal/travis-sonarqube.sh
tools/jenkins/Coverage.sh
tools/jenkins/DynamicAnalysis.sh
tools/jenkins/DynamicAnalysis_description.sh
tools/jenkins/Flags.sh
tools/jenkins/Sanitizers.sh
tools/jenkins/build.sh
tools/stack-cleaner/c++
tools/stack-cleaner/cc
tools/stack-cleaner/fortran
tools/tesh/generate_tesh
tools/tesh/tesh.py

index 5f3ce84..acc87ae 100755 (executable)
@@ -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
 #
 # 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
diff --git a/INSTALL b/INSTALL
index 2586170..3a17795 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -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:
 -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
 exec gfortran -m32 "$@"
 
 Existing Compilation Targets
index aa36cdc..88d880e 100644 (file)
@@ -345,7 +345,7 @@ cmake . \
 If needed, implement @c i686-linux-gnu-gfortran as a script:
 
 @verbatim
 If needed, implement @c i686-linux-gnu-gfortran as a script:
 
 @verbatim
-#!/bin/sh
+#!/usr/bin/env sh
 exec gfortran -m32 "$@"
 @endverbatim
 
 exec gfortran -m32 "$@"
 @endverbatim
 
index 09d5f66..cb32fc8 100755 (executable)
@@ -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.
 
 # Run the same test compiled with -fstack-cleaner / f-no-stack-cleaner
 # and compare the output.
 
index f267b72..ff73e7c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env sh
 
 # Copyright (c) 2007-2017. The SimGrid Team. All rights reserved.
 
 
 # Copyright (c) 2007-2017. The SimGrid Team. All rights reserved.
 
index a9765ac..85fd1ea 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env sh
 
 # Copyright (c) 2007-2017. The SimGrid Team.
 # All rights reserved.
 
 # Copyright (c) 2007-2017. The SimGrid Team.
 # All rights reserved.
index 886a8dd..eb8dbe1 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env sh
 
 # Copyright (c) 2014-2017. The SimGrid Team.
 # All rights reserved.
 
 # Copyright (c) 2014-2017. The SimGrid Team.
 # All rights reserved.
index 22869c3..56b3ac6 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env sh
 
 # Copyright (c) 2012-2017. The SimGrid Team.
 # All rights reserved.
 
 # Copyright (c) 2012-2017. The SimGrid Team.
 # All rights reserved.
index eb28bc8..42120a7 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env sh
 
 # Copyright (c) 2012-2017. The SimGrid Team.
 # All rights reserved.
 
 # Copyright (c) 2012-2017. The SimGrid Team.
 # All rights reserved.
index 3016954..0180e23 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env sh
 
 # Copyright (c) 2007-2016, The SimGrid Team. All rights reserved.
 
 
 # Copyright (c) 2007-2016, The SimGrid Team. All rights reserved.
 
index 40fcd3a..b414eec 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 # Copyright (c) 2013-2017. The SimGrid Team.
 # All rights reserved.
 
 # Copyright (c) 2013-2017. The SimGrid Team.
 # All rights reserved.
index 7bc3b5e..2d5f13c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 cd $(dirname $0)/../../
 
 
 cd $(dirname $0)/../../
 
index f47bec3..8ecc0fa 100755 (executable)
@@ -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
 
 # Generate files from a given dwarf.h
 # Usage: tools/generate-dwarf-functions /usr/include/dwarf.h
 
index 922defa..fc62cd1 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env sh
 
 # Install and run SonarQube on travis. 
 #
 
 # Install and run SonarQube on travis. 
 #
index cfe1ed1..2d9a332 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 set -e
 
 
 set -e
 
index 53cbde7..427d35f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 set -e
 
 
 set -e
 
index 128fcc4..597c14b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 set -e
 
 
 set -e
 
index 9c66b0d..2c0cfa3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 set -e
 
 
 set -e
 
index 70bd820..f5b07f2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 
 # This script is used by various build projects on Jenkins
 
 
 # This script is used by various build projects on Jenkins
 
index 51082b0..cbd5f85 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
 path="$(dirname $0)"
 exec "$path"/compiler-wrapper c++ "$@"
 path="$(dirname $0)"
 exec "$path"/compiler-wrapper c++ "$@"
index d6da0f2..fe2fe7e 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
 path="$(dirname $0)"
 exec "$path"/compiler-wrapper cc "$@"
 path="$(dirname $0)"
 exec "$path"/compiler-wrapper cc "$@"
index 62087fd..f84392c 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
 path="$(dirname $0)"
 exec "$path"/compiler-wrapper gfortran "$@"
 path="$(dirname $0)"
 exec "$path"/compiler-wrapper gfortran "$@"
index 23ec028..af5b032 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
 # Generate a tesh file from a given command (simple case).
 
 command="$1"
 # Generate a tesh file from a given command (simple case).
 
 command="$1"
index 7e1f971..5db0dcb 100755 (executable)
@@ -296,7 +296,7 @@ class Cmd(object):
             tesh_exit(3)
         except OSError as osE:
             if osE.errno == 8:
             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)
             raise osE
 
         cmdName = FileReader().filename+":"+str(self.linenumber)