aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Bjørn Forsman <bjorn.forsman@gmail.com>2014-10-21 16:05:56 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-10-25 01:55:37 +0200
commitacc76a6ef9fd204cc79a3d63e90c8b43163bdeab (patch)
tree76e84ad8fc4b0ff7f2c6306f59edcc3ce3b5a7c1 /support
parentb7c1c3ba6a7dc3831bea0e16de801049105abaf3 (diff)
downloadbuildroot-acc76a6ef9fd204cc79a3d63e90c8b43163bdeab.tar.gz
buildroot-acc76a6ef9fd204cc79a3d63e90c8b43163bdeab.tar.bz2
Change /bin/bash shebangs into /usr/bin/env bash
Not all systems have /bin/bash (e.g. NixOS[1] doesn't). Buildroot already uses /usr/bin/env shebangs for other interpreters (perl, python), so why not bash? This changes only the shebangs used by Buildroot itself; stuff installed to the target system is left unchanged. With this applied I can run Buildroot unmodified on NixOS. [1]: http://nixos.org/ Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/download/bzr2
-rwxr-xr-xsupport/download/check-hash2
-rwxr-xr-xsupport/download/cp2
-rwxr-xr-xsupport/download/cvs2
-rwxr-xr-xsupport/download/git2
-rwxr-xr-xsupport/download/hg2
-rwxr-xr-xsupport/download/scp2
-rwxr-xr-xsupport/download/svn2
-rwxr-xr-xsupport/download/wget2
-rwxr-xr-xsupport/download/wrapper2
-rwxr-xr-xsupport/scripts/apply-patches.sh2
-rwxr-xr-xsupport/scripts/expunge-gconv-modules2
-rwxr-xr-xsupport/scripts/mkusers2
-rwxr-xr-xsupport/scripts/pkg-stats2
14 files changed, 14 insertions, 14 deletions
diff --git a/support/download/bzr b/support/download/bzr
index b545cb112c..c157ca8d5b 100755
--- a/support/download/bzr
+++ b/support/download/bzr
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/check-hash b/support/download/check-hash
index f1e0c1b680..067e7a2395 100755
--- a/support/download/check-hash
+++ b/support/download/check-hash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# Helper to check a file matches its known hash
diff --git a/support/download/cp b/support/download/cp
index 264f5dc522..463fc382c4 100755
--- a/support/download/cp
+++ b/support/download/cp
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/cvs b/support/download/cvs
index c92d491fd1..56a11c29a4 100755
--- a/support/download/cvs
+++ b/support/download/cvs
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/git b/support/download/git
index ff6b5c3197..5d36ca4cbf 100755
--- a/support/download/git
+++ b/support/download/git
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/hg b/support/download/hg
index 747dd34802..66bd2eda6c 100755
--- a/support/download/hg
+++ b/support/download/hg
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/scp b/support/download/scp
index 1676929175..f3e92f3f6e 100755
--- a/support/download/scp
+++ b/support/download/scp
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/svn b/support/download/svn
index 3a9512dddc..a960f7dd3e 100755
--- a/support/download/svn
+++ b/support/download/svn
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/wget b/support/download/wget
index 2cea1004c9..6b73726bc0 100755
--- a/support/download/wget
+++ b/support/download/wget
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
diff --git a/support/download/wrapper b/support/download/wrapper
index 8ae2797d65..320a37ed7e 100755
--- a/support/download/wrapper
+++ b/support/download/wrapper
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This script is a wrapper to the other download helpers.
# Its role is to ensure atomicity when saving downloaded files
diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index b32d592cf7..af6df9ec72 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env bash
# A little script I whipped up to make it easy to
# patch source trees and have sane error handling
# -Erik
diff --git a/support/scripts/expunge-gconv-modules b/support/scripts/expunge-gconv-modules
index a77b063cac..03012c1ce3 100755
--- a/support/scripts/expunge-gconv-modules
+++ b/support/scripts/expunge-gconv-modules
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# This script is used to generate a gconv-modules file that takes into
# account only the gconv modules installed by Buildroot. It receives
diff --git a/support/scripts/mkusers b/support/scripts/mkusers
index 5e5a5d9585..b003330ef6 100755
--- a/support/scripts/mkusers
+++ b/support/scripts/mkusers
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -e
myname="${0##*/}"
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index f6d10bb597..48a5536eca 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (C) 2009 by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
#