[caribou] portability: allow the use of /bin/sh instead of /bin/bash
- From: Antoine Jacoutot <ajacoutot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [caribou] portability: allow the use of /bin/sh instead of /bin/bash
- Date: Tue, 2 Oct 2012 06:29:50 +0000 (UTC)
commit c80067412ed9aa434f4bbe2aabed88a21b8cf71f
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Sun Jul 8 10:32:44 2012 +0200
portability: allow the use of /bin/sh instead of /bin/bash
In this case, ${BASH_SOURCE[0]} can be replaced with ${0} which is
recognized by all bourne shells (bash, sh, ksh).
bin/antler-keyboard.in | 4 ++--
bin/caribou-preferences.in | 4 ++--
bin/caribou.in | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/bin/antler-keyboard.in b/bin/antler-keyboard.in
index b954fbf..3c0b13d 100755
--- a/bin/antler-keyboard.in
+++ b/bin/antler-keyboard.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Antler - a Caribou keyboard implementation
#
@@ -18,7 +18,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-script_dir="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+script_dir="$(dirname "$(readlink -f ${0})")"
prefix= prefix@
exec_prefix= exec_prefix@
diff --git a/bin/caribou-preferences.in b/bin/caribou-preferences.in
index 57772e7..636ef89 100755
--- a/bin/caribou-preferences.in
+++ b/bin/caribou-preferences.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Antler - a Caribou keyboard implementation
#
@@ -18,7 +18,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-script_dir="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+script_dir="$(dirname "$(readlink -f ${0})")"
prefix= prefix@
exec_prefix= exec_prefix@
diff --git a/bin/caribou.in b/bin/caribou.in
index 18fdd52..29ba6b0 100755
--- a/bin/caribou.in
+++ b/bin/caribou.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Caribou - text entry and UI navigation application
#
@@ -24,7 +24,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-script_dir="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
+script_dir="$(dirname "$(readlink -f ${0})")"
prefix= prefix@
exec_prefix= exec_prefix@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]