diff --git a/ci/install-build-deps.sh b/ci/install-build-deps.sh index dda00623..b64afb89 100755 --- a/ci/install-build-deps.sh +++ b/ci/install-build-deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 diff --git a/ci/run-cosim-test.sh b/ci/run-cosim-test.sh index 1165bf58..346e13c7 100755 --- a/ci/run-cosim-test.sh +++ b/ci/run-cosim-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 diff --git a/dv/uvm/core_ibex/scripts/objdump.sh b/dv/uvm/core_ibex/scripts/objdump.sh index cba84254..b3e37e9a 100755 --- a/dv/uvm/core_ibex/scripts/objdump.sh +++ b/dv/uvm/core_ibex/scripts/objdump.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _GET_OBJS=$(find ./out/run -type f -iregex '.*test\.o') if [[ -z "${RISCV_TOOLCHAIN}" ]]; then echo "Please define RISCV_TOOLCHAIN to have access to objdump." diff --git a/dv/uvm/core_ibex/scripts/prettify.sh b/dv/uvm/core_ibex/scripts/prettify.sh index 8f9b5c50..f95f9efd 100755 --- a/dv/uvm/core_ibex/scripts/prettify.sh +++ b/dv/uvm/core_ibex/scripts/prettify.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _GET_TRACES=$(find . -type f -iregex '.*trace_core.*\.log') for trace in $_GET_TRACES; do column -t -s $'\t' -o ' ' -R 1,2,3,4,5 "$trace" > "$(dirname "$trace")"/trace_pretty.log diff --git a/examples/simple_system/spike-simple-system.sh b/examples/simple_system/spike-simple-system.sh index c293790e..42ca3fdc 100755 --- a/examples/simple_system/spike-simple-system.sh +++ b/examples/simple_system/spike-simple-system.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -u set -e diff --git a/syn/lec_sv2v.sh b/syn/lec_sv2v.sh index 10f2eaad..8ba08d72 100755 --- a/syn/lec_sv2v.sh +++ b/syn/lec_sv2v.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. diff --git a/syn/python/build_translated_names.py b/syn/python/build_translated_names.py index a17dc77b..d0c08d5c 100755 --- a/syn/python/build_translated_names.py +++ b/syn/python/build_translated_names.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. diff --git a/syn/python/get_kge.py b/syn/python/get_kge.py index e0f463df..e2704eac 100755 --- a/syn/python/get_kge.py +++ b/syn/python/get_kge.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. diff --git a/syn/python/translate_timing_csv.py b/syn/python/translate_timing_csv.py index fcac614b..037f749b 100755 --- a/syn/python/translate_timing_csv.py +++ b/syn/python/translate_timing_csv.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. diff --git a/syn/syn_setup.example.sh b/syn/syn_setup.example.sh old mode 100644 new mode 100755 index ed56ff03..5d9a07d0 --- a/syn/syn_setup.example.sh +++ b/syn/syn_setup.example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. diff --git a/syn/syn_yosys.sh b/syn/syn_yosys.sh index 9de09e8f..cca9e764 100755 --- a/syn/syn_yosys.sh +++ b/syn/syn_yosys.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. diff --git a/syn/translate_timing_rpts.sh b/syn/translate_timing_rpts.sh index e489a1e4..7bb6995f 100755 --- a/syn/translate_timing_rpts.sh +++ b/syn/translate_timing_rpts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details.