From 3eb4155489a96f360fbec44337cbf685f9157707 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Thu, 26 Apr 2012 19:11:05 +0200 Subject: [PATCH] Switched to /usr/bin/env bash for better cross-platform compatibility --- Tools/Documentation/postprocess/001.cleanup_headers.sh | 2 +- Tools/Documentation/postprocess/002.transform_text.sh | 2 +- Tools/Documentation/postprocess/003.markdown_readme.sh | 4 ++-- Tools/Documentation/preprocess/001.markdown_readme.sh | 2 +- Tools/Documentation/preprocess/002.make_headers.sh | 2 +- Tools/Documentation/support/processor_setup.sh | 2 +- Tools/Scripts/ci.sh | 2 +- Tools/capp_lint/install.sh | 2 +- Tools/capp_lint/pre-commit | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Tools/Documentation/postprocess/001.cleanup_headers.sh b/Tools/Documentation/postprocess/001.cleanup_headers.sh index bd271367bb..4d795216ff 100755 --- a/Tools/Documentation/postprocess/001.cleanup_headers.sh +++ b/Tools/Documentation/postprocess/001.cleanup_headers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # NOTE: The working directory should be the main capp directory when this script is run # diff --git a/Tools/Documentation/postprocess/002.transform_text.sh b/Tools/Documentation/postprocess/002.transform_text.sh index 3cd354752c..656af6a732 100755 --- a/Tools/Documentation/postprocess/002.transform_text.sh +++ b/Tools/Documentation/postprocess/002.transform_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # NOTE: The working directory should be the main capp directory when this script is run # diff --git a/Tools/Documentation/postprocess/003.markdown_readme.sh b/Tools/Documentation/postprocess/003.markdown_readme.sh index b91d7ecee4..1aaf511630 100755 --- a/Tools/Documentation/postprocess/003.markdown_readme.sh +++ b/Tools/Documentation/postprocess/003.markdown_readme.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Remove the generated README.html once the build has finished. # @@ -7,4 +7,4 @@ # $1 Cappuccino documentation directory # -rm "$1"/README.html \ No newline at end of file +rm "$1"/README.html diff --git a/Tools/Documentation/preprocess/001.markdown_readme.sh b/Tools/Documentation/preprocess/001.markdown_readme.sh index 8f23e4ef4e..62d1537075 100755 --- a/Tools/Documentation/preprocess/001.markdown_readme.sh +++ b/Tools/Documentation/preprocess/001.markdown_readme.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # NOTE: The working directory should be the main capp directory when this script is run # diff --git a/Tools/Documentation/preprocess/002.make_headers.sh b/Tools/Documentation/preprocess/002.make_headers.sh index 72c1dfba0f..e598f31efb 100755 --- a/Tools/Documentation/preprocess/002.make_headers.sh +++ b/Tools/Documentation/preprocess/002.make_headers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # NOTE: The working directory should be the main capp directory when this script is run # diff --git a/Tools/Documentation/support/processor_setup.sh b/Tools/Documentation/support/processor_setup.sh index 83cd03737e..a2ac165f55 100755 --- a/Tools/Documentation/support/processor_setup.sh +++ b/Tools/Documentation/support/processor_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function processor_msg () { diff --git a/Tools/Scripts/ci.sh b/Tools/Scripts/ci.sh index bb89cc298b..4cce6225ef 100755 --- a/Tools/Scripts/ci.sh +++ b/Tools/Scripts/ci.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash project_home="$(dirname "$PWD")" extras="$project_home/ci-extra.sh" diff --git a/Tools/capp_lint/install.sh b/Tools/capp_lint/install.sh index f28e40904f..40a90bb506 100755 --- a/Tools/capp_lint/install.sh +++ b/Tools/capp_lint/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash chmod +x capp_lint diff --git a/Tools/capp_lint/pre-commit b/Tools/capp_lint/pre-commit index 4729c265bd..d896cd5ff8 100644 --- a/Tools/capp_lint/pre-commit +++ b/Tools/capp_lint/pre-commit @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # An example hook script to verify what is about to be committed. # Called by "git commit" with no arguments. The hook should