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:
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# Helper to check a file matches its known hash
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/bin/bash
+#!/usr/bin/env bash
# We want to catch any unexpected failure, and exit immediately
set -e
-#!/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
-#! /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
-#!/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
-#!/bin/bash
+#!/usr/bin/env bash
set -e
myname="${0##*/}"
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (C) 2009 by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
#