diff options
author | Antoine Jacoutot <ajacoutot@gnome.org> | 2012-07-08 10:32:44 +0200 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@gnome.org> | 2012-10-02 08:28:00 +0200 |
commit | c80067412ed9aa434f4bbe2aabed88a21b8cf71f (patch) | |
tree | c1814eaa8340db0117d4c6a3100cc12af4779646 /bin | |
parent | 0d599a16fce5d1757af49d8577573bb29c198a31 (diff) | |
download | caribou-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).
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/antler-keyboard.in | 4 | ||||
-rwxr-xr-x | bin/caribou-preferences.in | 4 | ||||
-rwxr-xr-x | 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@ |