Some systems don't have bash in /bin. Signed-off-by: Mark Wielaard <m...@klomp.org> --- config/ChangeLog | 4 +++ config/upload-release.sh | 2 +- tests/ChangeLog | 30 +++++++++++++++++++++++ tests/coverage.sh | 2 +- tests/run-ar.sh | 2 +- tests/run-backtrace-core-aarch64.sh | 2 +- tests/run-backtrace-core-i386.sh | 2 +- tests/run-backtrace-core-ppc.sh | 2 +- tests/run-backtrace-core-s390.sh | 2 +- tests/run-backtrace-core-s390x.sh | 2 +- tests/run-backtrace-core-sparc.sh | 2 +- tests/run-backtrace-core-x32.sh | 2 +- tests/run-backtrace-core-x86_64.sh | 2 +- tests/run-backtrace-data.sh | 2 +- tests/run-backtrace-demangle.sh | 2 +- tests/run-backtrace-dwarf.sh | 2 +- tests/run-backtrace-fp-core-aarch64.sh | 2 +- tests/run-backtrace-fp-core-i386.sh | 2 +- tests/run-backtrace-fp-core-ppc64le.sh | 2 +- tests/run-backtrace-fp-core-x86_64.sh | 2 +- tests/run-backtrace-native-biarch.sh | 2 +- tests/run-backtrace-native-core-biarch.sh | 2 +- tests/run-backtrace-native-core.sh | 2 +- tests/run-backtrace-native.sh | 2 +- tests/run-debuginfod-find.sh | 2 +- tests/run-deleted.sh | 2 +- tests/run-dwelf_elf_e_machine_string.sh | 2 +- tests/run-large-elf-file.sh | 2 +- tests/run-lfs-symbols.sh | 2 +- tests/run-linkmap-cut.sh | 2 +- 30 files changed, 62 insertions(+), 28 deletions(-)
diff --git a/config/ChangeLog b/config/ChangeLog index 2ad93702..459f7528 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2020-06-16 Mark Wielaard <m...@klomp.org> + + * upload-release.sh: Use /usr/bin/env bash. + 2020-06-11 Mark Wielaard <m...@klomp.org> * elfutils.spec.in: Update for 0.189. diff --git a/config/upload-release.sh b/config/upload-release.sh index b52642ea..18c91c0e 100755 --- a/config/upload-release.sh +++ b/config/upload-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Must be run in the source directory. # Should have passed make distcheck. diff --git a/tests/ChangeLog b/tests/ChangeLog index e5d9196b..05220bd7 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,33 @@ +2020-06-16 Mark Wielaard <m...@klomp.org> + + * coverage.sh: Use /usr/bin/env bash. + * run-ar.sh: Likewise. + * run-backtrace-core-aarch64.sh: Likewise. + * run-backtrace-core-i386.sh: Likewise. + * run-backtrace-core-ppc.sh: Likewise. + * run-backtrace-core-s390.sh: Likewise. + * run-backtrace-core-s390x.sh: Likewise. + * run-backtrace-core-sparc.sh: Likewise. + * run-backtrace-core-x32.sh: Likewise. + * run-backtrace-core-x86_64.sh: Likewise. + * run-backtrace-data.sh: Likewise. + * run-backtrace-demangle.sh: Likewise. + * run-backtrace-dwarf.sh: Likewise. + * run-backtrace-fp-core-aarch64.sh: Likewise. + * run-backtrace-fp-core-i386.sh: Likewise. + * run-backtrace-fp-core-ppc64le.sh: Likewise. + * run-backtrace-fp-core-x86_64.sh: Likewise. + * run-backtrace-native-biarch.sh: Likewise. + * run-backtrace-native-core-biarch.sh: Likewise. + * run-backtrace-native-core.sh: Likewise. + * run-backtrace-native.sh: Likewise. + * run-debuginfod-find.sh: Likewise. + * run-deleted.sh: Likewise. + * run-dwelf_elf_e_machine_string.sh: Likewise. + * run-large-elf-file.sh: Likewise. + * run-lfs-symbols.sh: Likewise. + * run-linkmap-cut.sh: Likewise. + 2020-06-11 Mark Wielaard <m...@klomp.org> * Makefile.am (nlist-test): Add GCOV flags when necessary. diff --git a/tests/coverage.sh b/tests/coverage.sh index 01d292cc..448d43ba 100755 --- a/tests/coverage.sh +++ b/tests/coverage.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash if [ "x$1" = "x-v" ]; then verbose=yes diff --git a/tests/run-ar.sh b/tests/run-ar.sh index fb9394d5..656f1d1a 100755 --- a/tests/run-ar.sh +++ b/tests/run-ar.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-aarch64.sh b/tests/run-backtrace-core-aarch64.sh index a29a6613..41221d36 100755 --- a/tests/run-backtrace-core-aarch64.sh +++ b/tests/run-backtrace-core-aarch64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-i386.sh b/tests/run-backtrace-core-i386.sh index 7294ec3d..c497f4aa 100755 --- a/tests/run-backtrace-core-i386.sh +++ b/tests/run-backtrace-core-i386.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-ppc.sh b/tests/run-backtrace-core-ppc.sh index 555ac352..1a51046c 100755 --- a/tests/run-backtrace-core-ppc.sh +++ b/tests/run-backtrace-core-ppc.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-s390.sh b/tests/run-backtrace-core-s390.sh index d3b6dc9c..ce3afb93 100755 --- a/tests/run-backtrace-core-s390.sh +++ b/tests/run-backtrace-core-s390.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-s390x.sh b/tests/run-backtrace-core-s390x.sh index c3e236d4..39450c14 100755 --- a/tests/run-backtrace-core-s390x.sh +++ b/tests/run-backtrace-core-s390x.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-sparc.sh b/tests/run-backtrace-core-sparc.sh index 60399baa..2f39e745 100755 --- a/tests/run-backtrace-core-sparc.sh +++ b/tests/run-backtrace-core-sparc.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2015 Oracle, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-x32.sh b/tests/run-backtrace-core-x32.sh index 2ad76bcf..e6144b35 100755 --- a/tests/run-backtrace-core-x32.sh +++ b/tests/run-backtrace-core-x32.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) H.J. Lu <hjl.to...@gmail.com>, 2015. # This file is part of elfutils. # diff --git a/tests/run-backtrace-core-x86_64.sh b/tests/run-backtrace-core-x86_64.sh index d00cd6d6..49248015 100755 --- a/tests/run-backtrace-core-x86_64.sh +++ b/tests/run-backtrace-core-x86_64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-data.sh b/tests/run-backtrace-data.sh index 3062c304..f67a43ef 100755 --- a/tests/run-backtrace-data.sh +++ b/tests/run-backtrace-data.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-demangle.sh b/tests/run-backtrace-demangle.sh index 2d253240..403a4852 100755 --- a/tests/run-backtrace-demangle.sh +++ b/tests/run-backtrace-demangle.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2014, 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-dwarf.sh b/tests/run-backtrace-dwarf.sh index 8834048a..7ed795d8 100755 --- a/tests/run-backtrace-dwarf.sh +++ b/tests/run-backtrace-dwarf.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-aarch64.sh b/tests/run-backtrace-fp-core-aarch64.sh index fda88d37..397e3c3a 100755 --- a/tests/run-backtrace-fp-core-aarch64.sh +++ b/tests/run-backtrace-fp-core-aarch64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 The Qt Company # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-i386.sh b/tests/run-backtrace-fp-core-i386.sh index c58ff532..43f859fe 100755 --- a/tests/run-backtrace-fp-core-i386.sh +++ b/tests/run-backtrace-fp-core-i386.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-ppc64le.sh b/tests/run-backtrace-fp-core-ppc64le.sh index 326ca342..345b8dbe 100755 --- a/tests/run-backtrace-fp-core-ppc64le.sh +++ b/tests/run-backtrace-fp-core-ppc64le.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-fp-core-x86_64.sh b/tests/run-backtrace-fp-core-x86_64.sh index 348eb183..12f44c4b 100755 --- a/tests/run-backtrace-fp-core-x86_64.sh +++ b/tests/run-backtrace-fp-core-x86_64.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2017 The Qt Company # This file is part of elfutils. # diff --git a/tests/run-backtrace-native-biarch.sh b/tests/run-backtrace-native-biarch.sh index 2afe38a5..92869830 100755 --- a/tests/run-backtrace-native-biarch.sh +++ b/tests/run-backtrace-native-biarch.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013, 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-native-core-biarch.sh b/tests/run-backtrace-native-core-biarch.sh index 02552ce9..23274257 100755 --- a/tests/run-backtrace-native-core-biarch.sh +++ b/tests/run-backtrace-native-core-biarch.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013, 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-native-core.sh b/tests/run-backtrace-native-core.sh index cb025a56..db95895f 100755 --- a/tests/run-backtrace-native-core.sh +++ b/tests/run-backtrace-native-core.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-backtrace-native.sh b/tests/run-backtrace-native.sh index ddae345d..823c4117 100755 --- a/tests/run-backtrace-native.sh +++ b/tests/run-backtrace-native.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2013 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh index 7faad331..f0c77c51 100755 --- a/tests/run-debuginfod-find.sh +++ b/tests/run-debuginfod-find.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (C) 2019-2020 Red Hat, Inc. # This file is part of elfutils. diff --git a/tests/run-deleted.sh b/tests/run-deleted.sh index 0f647621..a1ec1ecf 100755 --- a/tests/run-deleted.sh +++ b/tests/run-deleted.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2014 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-dwelf_elf_e_machine_string.sh b/tests/run-dwelf_elf_e_machine_string.sh index ba6d0e63..658f229f 100755 --- a/tests/run-dwelf_elf_e_machine_string.sh +++ b/tests/run-dwelf_elf_e_machine_string.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Test to make sure all EM values in elf.h are recognized # Copyright (C) 2019 Red Hat, Inc. # This file is part of elfutils. diff --git a/tests/run-large-elf-file.sh b/tests/run-large-elf-file.sh index cbe30615..667d24d8 100755 --- a/tests/run-large-elf-file.sh +++ b/tests/run-large-elf-file.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2019 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-lfs-symbols.sh b/tests/run-lfs-symbols.sh index b65391b6..7398e7f4 100755 --- a/tests/run-lfs-symbols.sh +++ b/tests/run-lfs-symbols.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2015 Red Hat, Inc. # This file is part of elfutils. # diff --git a/tests/run-linkmap-cut.sh b/tests/run-linkmap-cut.sh index de2bc7cc..053b96dc 100755 --- a/tests/run-linkmap-cut.sh +++ b/tests/run-linkmap-cut.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Copyright (C) 2014 Red Hat, Inc. # This file is part of elfutils. # -- 2.20.1