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.
devs/q66/eolian-beta-types
Carsten Haitzler 4 years ago
parent 5b9285ee7f
commit 50df527e28
  1. 7
      meson/evas_loader_conf.sh

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
original_loader=$1
filename="$(basename $original_loader)"
@ -8,11 +8,12 @@ loader_dir="$(dirname $original_loader)"
loader="$(basename $original_loader)"
loader_name="$(echo $original_name | cut -f 1 -d '.')"
if [ ${original_loader: -3} == "$ext" ]
if [ `echo -n ${original_loader} | tail -c 3` == "$ext" ]
then
mv "$DESTDIR"/"$original_loader" "$DESTDIR"/"$loader_dir"/"$original_name"
fi
for x in "${@:2}"; do
shift
for x in "$@"; do
ln -sf "$original_name" "$DESTDIR"/"$loader_dir"/"$loader_name"."$x"
done

Loading…
Cancel
Save