summaryrefslogtreecommitdiff
path: root/meson
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-03-01 12:40:01 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-03-01 12:40:01 +0000
commit50df527e2877b30949d22ba064c1c32c6a0e8026 (patch)
treee9c5e8e1a3bf29836f74853e46bd47429ee22c66 /meson
parent5b9285ee7face73a360b50b8298935a9534f3ad1 (diff)
meson - make evas loader confg install shell be binsh compliant
this shell required bash. not good for example if on some unix systems like bsd that dont have bash... by defauklt. so make it /bin/sh compliant shell.
Diffstat (limited to 'meson')
-rwxr-xr-xmeson/evas_loader_conf.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/meson/evas_loader_conf.sh b/meson/evas_loader_conf.sh
index 4ff60c351b..79d781548c 100755
--- a/meson/evas_loader_conf.sh
+++ b/meson/evas_loader_conf.sh
@@ -1,4 +1,4 @@
1#!/bin/bash 1#!/bin/sh
2 2
3original_loader=$1 3original_loader=$1
4filename="$(basename $original_loader)" 4filename="$(basename $original_loader)"
@@ -8,11 +8,12 @@ loader_dir="$(dirname $original_loader)"
8loader="$(basename $original_loader)" 8loader="$(basename $original_loader)"
9loader_name="$(echo $original_name | cut -f 1 -d '.')" 9loader_name="$(echo $original_name | cut -f 1 -d '.')"
10 10
11if [ ${original_loader: -3} == "$ext" ] 11if [ `echo -n ${original_loader} | tail -c 3` == "$ext" ]
12 then 12 then
13 mv "$DESTDIR"/"$original_loader" "$DESTDIR"/"$loader_dir"/"$original_name" 13 mv "$DESTDIR"/"$original_loader" "$DESTDIR"/"$loader_dir"/"$original_name"
14fi 14fi
15 15
16for x in "${@:2}"; do 16shift
17for x in "$@"; do
17 ln -sf "$original_name" "$DESTDIR"/"$loader_dir"/"$loader_name"."$x" 18 ln -sf "$original_name" "$DESTDIR"/"$loader_dir"/"$loader_name"."$x"
18done 19done