From 570555b72fdfe7f6353d972e985a7af2603c4472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Sonderfeld?= Date: Mon, 18 Aug 2014 01:09:16 +0200 Subject: [PATCH] Change bash shebang to use /usr/bin/env. That makes those scripts usable on systems where GNU bash is not in /bin/. E.g., NixOS. --- cleanup-whitespace.sh | 2 +- test/run-all-tests.sh | 2 +- test/run-ert-interactive.sh | 2 +- test/run-ert.sh | 2 +- test/run-test-interactive.sh | 2 +- test/run-test.sh | 2 +- test/run-travis-ci.sh | 2 +- test/test-all-recipes.sh | 2 +- test/test-interactive.sh | 2 +- test/test-recipe-interactive.sh | 2 +- test/test-recipe.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cleanup-whitespace.sh b/cleanup-whitespace.sh index df650f78..f5178065 100755 --- a/cleanup-whitespace.sh +++ b/cleanup-whitespace.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh SETUP='(progn (add-to-list (quote load-path) ".") (load "el-get")(defun cleanup-whitespace () (message "Cleaning whitespace %s" (buffer-file-name)) (setq indent-tabs-mode nil require-final-newline t) (untabify (point-min) (point-max)) (indent-region (point-min) (point-max)) (delete-trailing-whitespace (point-min) (point-max)) (save-buffer)) (add-hook (quote find-file-hook) (function cleanup-whitespace)) (add-to-list (quote auto-mode-alist) (quote ("\\.[rR][cC][pP]$" . emacs-lisp-mode))))' diff --git a/test/run-all-tests.sh b/test/run-all-tests.sh index 0a1798f9..99e24966 100755 --- a/test/run-all-tests.sh +++ b/test/run-all-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cd "$(dirname "$0")" diff --git a/test/run-ert-interactive.sh b/test/run-ert-interactive.sh index df1a87ec..313db664 100755 --- a/test/run-ert-interactive.sh +++ b/test/run-ert-interactive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$(dirname $0)"/test-utils.sh ERT_TEST="$EL_GET_LIB_DIR/test/test.el" diff --git a/test/run-ert.sh b/test/run-ert.sh index 1e666fc7..d69ee539 100755 --- a/test/run-ert.sh +++ b/test/run-ert.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$(dirname $0)"/test-utils.sh ERT_TEST="$EL_GET_LIB_DIR/test/test.el" diff --git a/test/run-test-interactive.sh b/test/run-test-interactive.sh index e07d013a..7766148f 100755 --- a/test/run-test-interactive.sh +++ b/test/run-test-interactive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" ]; then echo "Usage: $0 testfile1 [testfile2 ...]" diff --git a/test/run-test.sh b/test/run-test.sh index 319ea5a4..6ccd431e 100755 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" ]; then echo "Usage: $0 testfile1 [testfile2 ...]" diff --git a/test/run-travis-ci.sh b/test/run-travis-ci.sh index c0f1cc26..75f754db 100755 --- a/test/run-travis-ci.sh +++ b/test/run-travis-ci.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash $EMACS --version diff --git a/test/test-all-recipes.sh b/test/test-all-recipes.sh index 8ab7a333..b609c6ab 100755 --- a/test/test-all-recipes.sh +++ b/test/test-all-recipes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cd "$(dirname "$0")" diff --git a/test/test-interactive.sh b/test/test-interactive.sh index 10e98d37..d13a6155 100755 --- a/test/test-interactive.sh +++ b/test/test-interactive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set_default () { eval " diff --git a/test/test-recipe-interactive.sh b/test/test-recipe-interactive.sh index 04cbb1c2..1e17e099 100755 --- a/test/test-recipe-interactive.sh +++ b/test/test-recipe-interactive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" ]; then echo "Usage: $0 recipe1 [recipe2 ...]" diff --git a/test/test-recipe.sh b/test/test-recipe.sh index e1280480..bdd9610a 100755 --- a/test/test-recipe.sh +++ b/test/test-recipe.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" ]; then echo "Usage: $0 recipe1 [recipe2 ...]"