Change /bin/bash shebangs into /usr/bin/env bash
authorBjørn Forsman <bjorn.forsman@gmail.com>
Tue, 21 Oct 2014 14:05:56 +0000 (16:05 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 24 Oct 2014 23:55:37 +0000 (01:55 +0200)
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>
14 files changed:
support/download/bzr
support/download/check-hash
support/download/cp
support/download/cvs
support/download/git
support/download/hg
support/download/scp
support/download/svn
support/download/wget
support/download/wrapper
support/scripts/apply-patches.sh
support/scripts/expunge-gconv-modules
support/scripts/mkusers
support/scripts/pkg-stats

index b545cb112cb5ba1134d9a6555d648b58312521b6..c157ca8d5b98544417ad4dd3ea220b69a85b8b95 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index f1e0c1b6807858478dc0c3a5207c5b039908d34e..067e7a2395d8c400a3442e81dfddfaaf26ab2367 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 
 # Helper to check a file matches its known hash
index 264f5dc522620d72a0644eaabccdc3090719331b..463fc382c47035c20ca1d9b39f46f698b28a2f3a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index c92d491fd1bc66b13623aaacedf25c6a890f2807..56a11c29a4b7ffcc7207b0c0d24486d219c53862 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index ff6b5c3197ad423ebeffe2995b71d3df90a002e0..5d36ca4cbfeead6777a2241be14def3bd042da53 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index 747dd348024b452ab5fdf98be1a3346f83b52f43..66bd2eda6c6ca2d6abdcc8849a7f9fad5e980cdf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index 167692917534252cb96bdfcfa7f6ae06cac5d3fd..f3e92f3f6e33ae76e5c8f6561ace76352a6f0f1f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index 3a9512dddc3b3e8accf0a3b4a393cb2eca93e735..a960f7dd3eff47ae1abe18948355a0672e9544a3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index 2cea1004c96e15de01953ab2c6da6c203571fe2c..6b73726bc02aaea3142000366678fe164fa1563e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # We want to catch any unexpected failure, and exit immediately
 set -e
index 8ae2797d65d1ec3840303542434a41f37a11225c..320a37ed7ecfb2205d479ca082ed069cd90c0e96 100755 (executable)
@@ -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
index b32d592cf7369a543666595d73c989d023052a09..af6df9ec72b2f9356bc47191d694385061990bae 100755 (executable)
@@ -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
index a77b063cac15506ff489be3b6e04cb2e1223ed57..03012c1ce310e4b1ce3ff4cd880adcc3a371b439 100755 (executable)
@@ -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
index 5e5a5d9585add5e6abdd4e1be6601141d4bfcf3b..b003330ef614903922310474bb190c9636357de6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 myname="${0##*/}"
 
index f6d10bb597855f95860dddf0a2473b4c09bfdeda..48a5536eca75c2df151682bc075cfb663312fc1f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Copyright (C) 2009 by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 #