summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@gnome.org>2012-07-08 10:32:44 +0200
committerAntoine Jacoutot <ajacoutot@gnome.org>2012-10-02 08:28:00 +0200
commitc80067412ed9aa434f4bbe2aabed88a21b8cf71f (patch)
treec1814eaa8340db0117d4c6a3100cc12af4779646
parent0d599a16fce5d1757af49d8577573bb29c198a31 (diff)
downloadcaribou-c80067412ed9aa434f4bbe2aabed88a21b8cf71f.tar.gz
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).
-rwxr-xr-xbin/antler-keyboard.in4
-rwxr-xr-xbin/caribou-preferences.in4
-rwxr-xr-xbin/caribou.in4
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@