diff options
Diffstat (limited to 'testing/elektra/fix-bash-shebang.patch')
-rw-r--r-- | testing/elektra/fix-bash-shebang.patch | 254 |
1 files changed, 254 insertions, 0 deletions
diff --git a/testing/elektra/fix-bash-shebang.patch b/testing/elektra/fix-bash-shebang.patch new file mode 100644 index 0000000000..4e1668288a --- /dev/null +++ b/testing/elektra/fix-bash-shebang.patch @@ -0,0 +1,254 @@ +From 1e1414e99cfe5e2934b500015a3edfa358a849c6 Mon Sep 17 00:00:00 2001 +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Mon, 5 Feb 2018 20:30:05 +0100 +Subject: [PATCH] fix bash shebang in scripts for better portability + +Bash is not always installed in /bin! For example BSDs install Bash into +/usr/local/bin. Practically every *nix system has /usr/bin/env. + +Upstream-Issue: https://github.com/ElektraInitiative/libelektra/pull/1810 +--- + doc/docker/buildelektra.sh | 2 +- + doc/vagrant/buildelektra.sh | 2 +- + scripts/benchmark-createtree | 2 +- + scripts/benchmark_augeas_hosts.sh | 2 +- + scripts/benchmark_libsplit.sh | 2 +- + scripts/build-homepage | 2 +- + scripts/check-env-dep | 2 +- + scripts/configure-firefox.in | 2 +- + scripts/convert-hosts | 2 +- + scripts/copy-template | 2 +- + scripts/elektra-merge | 2 +- + scripts/elektra-mount | 2 +- + scripts/elektra-umount | 2 +- + scripts/ffconfig/setupConfig | 2 +- + scripts/ffconfig/setupHomepage | 2 +- + scripts/ffconfig/setupProxy | 2 +- + scripts/fix-spelling | 2 +- + scripts/generate-seeds | 2 +- + scripts/install-sh-completion.in | 2 +- + scripts/kdb-bash-completion | 2 +- + scripts/metaini-to-c | 2 +- + tests/shell/shell_recorder/tutorial_wrapper/markdown_shell_recorder.sh | 2 +- + 22 files changed, 22 insertions(+), 22 deletions(-) + +diff --git a/doc/docker/buildelektra.sh b/doc/docker/buildelektra.sh +index ed96e7955b..af54e4eacc 100755 +--- a/doc/docker/buildelektra.sh ++++ b/doc/docker/buildelektra.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + set -o errexit + set -o pipefail +diff --git a/doc/vagrant/buildelektra.sh b/doc/vagrant/buildelektra.sh +index c7210148e6..1abbd6b35d 100755 +--- a/doc/vagrant/buildelektra.sh ++++ b/doc/vagrant/buildelektra.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + set -o errexit + set -o pipefail +diff --git a/scripts/benchmark-createtree b/scripts/benchmark-createtree +index 56e9c1c584..34f29517ed 100755 +--- a/scripts/benchmark-createtree ++++ b/scripts/benchmark-createtree +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # bash required for platform independent time + + # $Id$ +diff --git a/scripts/benchmark_augeas_hosts.sh b/scripts/benchmark_augeas_hosts.sh +index cd62e096a1..a7bca1087f 100755 +--- a/scripts/benchmark_augeas_hosts.sh ++++ b/scripts/benchmark_augeas_hosts.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # bash required for platform independent time + + if [ -z "$KDB" ]; then +diff --git a/scripts/benchmark_libsplit.sh b/scripts/benchmark_libsplit.sh +index d637f6ba4b..7dbc8daf2b 100755 +--- a/scripts/benchmark_libsplit.sh ++++ b/scripts/benchmark_libsplit.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # bash required for platform independent time + + if [ -z "$KDB" ]; then +diff --git a/scripts/build-homepage b/scripts/build-homepage +index 84eed66869..de605ca22f 100755 +--- a/scripts/build-homepage ++++ b/scripts/build-homepage +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # This script is sourced on build server, shebang is for convenience + # bash is used to have a predictable ulimit behavior + +diff --git a/scripts/check-env-dep b/scripts/check-env-dep +index ba9728e7a4..a6831647b6 100755 +--- a/scripts/check-env-dep ++++ b/scripts/check-env-dep +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + OLD_IFS="$IFS" + IFS="$(printf '\n+')" +diff --git a/scripts/configure-firefox.in b/scripts/configure-firefox.in +index 4f8361b633..ab20f52914 100755 +--- a/scripts/configure-firefox.in ++++ b/scripts/configure-firefox.in +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + SCRIPTS_DIR=$(dirname "$0") + . "${SCRIPTS_DIR}/configure-common" +diff --git a/scripts/convert-hosts b/scripts/convert-hosts +index 3f4ae9f158..a01c7d104c 100755 +--- a/scripts/convert-hosts ++++ b/scripts/convert-hosts +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + ######################################################################## + ## +diff --git a/scripts/copy-template b/scripts/copy-template +index d34627139c..316e13f9ca 100755 +--- a/scripts/copy-template ++++ b/scripts/copy-template +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # + # @author Markus Raab <elektra@markus-raab.org> + # @brief Creates a plugin out of the template plugin +diff --git a/scripts/elektra-merge b/scripts/elektra-merge +index ad367a25ac..70c024ea19 100755 +--- a/scripts/elektra-merge ++++ b/scripts/elektra-merge +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + ours=$1 + base=$2 +diff --git a/scripts/elektra-mount b/scripts/elektra-mount +index 5872ad60d8..67c9bf59b0 100755 +--- a/scripts/elektra-mount ++++ b/scripts/elektra-mount +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + help() + { +diff --git a/scripts/elektra-umount b/scripts/elektra-umount +index e958a62fc4..8ef1864d07 100755 +--- a/scripts/elektra-umount ++++ b/scripts/elektra-umount +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + help() + { +diff --git a/scripts/ffconfig/setupConfig b/scripts/ffconfig/setupConfig +index eb0f14d0c9..9031323fe3 100755 +--- a/scripts/ffconfig/setupConfig ++++ b/scripts/ffconfig/setupConfig +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # main script for guided preference setup used by configure-firefox + + prefType= +diff --git a/scripts/ffconfig/setupHomepage b/scripts/ffconfig/setupHomepage +index ef63d9e133..0744bf63f2 100755 +--- a/scripts/ffconfig/setupHomepage ++++ b/scripts/ffconfig/setupHomepage +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + # guided setup for homepage preferences used by configure-firefox + +diff --git a/scripts/ffconfig/setupProxy b/scripts/ffconfig/setupProxy +index 748be213c3..426366b001 100755 +--- a/scripts/ffconfig/setupProxy ++++ b/scripts/ffconfig/setupProxy +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + # guided setup for proxy preferences used by configure-firefox + +diff --git a/scripts/fix-spelling b/scripts/fix-spelling +index acd1d44448..3bda9c11a7 100755 +--- a/scripts/fix-spelling ++++ b/scripts/fix-spelling +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # + # @author Markus Raab <elektra@markus-raab.org> + # @brief Fix spelling error in most files +diff --git a/scripts/generate-seeds b/scripts/generate-seeds +index b3b9cf7878..c38672bca4 100755 +--- a/scripts/generate-seeds ++++ b/scripts/generate-seeds +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # + # @author Kurt Micheli <kurt.micheli@libelektra.org> + # @brief generate uniformly distributed seeds with R +diff --git a/scripts/install-sh-completion.in b/scripts/install-sh-completion.in +index 36544d642f..bc29c5be31 100755 +--- a/scripts/install-sh-completion.in ++++ b/scripts/install-sh-completion.in +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + # This script will install the necessary configuration for zsh and bash completion + # +diff --git a/scripts/kdb-bash-completion b/scripts/kdb-bash-completion +index 039142f155..d4e5c2318b 100644 +--- a/scripts/kdb-bash-completion ++++ b/scripts/kdb-bash-completion +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + ########################################################################### + ## +diff --git a/scripts/metaini-to-c b/scripts/metaini-to-c +index 79b812096a..df9c5f9742 100755 +--- a/scripts/metaini-to-c ++++ b/scripts/metaini-to-c +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + if [ "$#" -ne 1 ]; + then +diff --git a/tests/shell/shell_recorder/tutorial_wrapper/markdown_shell_recorder.sh b/tests/shell/shell_recorder/tutorial_wrapper/markdown_shell_recorder.sh +index fbe5a8e7a3..bb8ca8e793 100755 +--- a/tests/shell/shell_recorder/tutorial_wrapper/markdown_shell_recorder.sh ++++ b/tests/shell/shell_recorder/tutorial_wrapper/markdown_shell_recorder.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + + @INCLUDE_COMMON@ + |