Bläddra i källkod

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>
Bjørn Forsman 10 år sedan
förälder
incheckning
acc76a6ef9

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
support/scripts/mkusers

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 myname="${0##*/}"
 

+ 1 - 1
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>
 #