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.
This commit is contained in:
Rüdiger Sonderfeld 2014-08-18 01:09:16 +02:00
parent 05426cd2cc
commit 570555b72f
11 changed files with 11 additions and 11 deletions

View File

@ -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))))' 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))))'

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "$(dirname "$0")" cd "$(dirname "$0")"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
source "$(dirname $0)"/test-utils.sh source "$(dirname $0)"/test-utils.sh
ERT_TEST="$EL_GET_LIB_DIR/test/test.el" ERT_TEST="$EL_GET_LIB_DIR/test/test.el"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
source "$(dirname $0)"/test-utils.sh source "$(dirname $0)"/test-utils.sh
ERT_TEST="$EL_GET_LIB_DIR/test/test.el" ERT_TEST="$EL_GET_LIB_DIR/test/test.el"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: $0 testfile1 [testfile2 ...]" echo "Usage: $0 testfile1 [testfile2 ...]"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: $0 testfile1 [testfile2 ...]" echo "Usage: $0 testfile1 [testfile2 ...]"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
$EMACS --version $EMACS --version

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "$(dirname "$0")" cd "$(dirname "$0")"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set_default () { set_default () {
eval " eval "

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: $0 recipe1 [recipe2 ...]" echo "Usage: $0 recipe1 [recipe2 ...]"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: $0 recipe1 [recipe2 ...]" echo "Usage: $0 recipe1 [recipe2 ...]"