meson- evas generic loader symlinks - fix to point to right place
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 14 Nov 2018 16:23:49 +0000 (16:23 +0000)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 07:01:57 +0000 (16:01 +0900)
symlinks for loaders and their extensions first pointers to an abs
pathname that was bad for destdirs with packaging and they also linked
to the wrong file - they had an extra . at the end due to link script
not using basename right. this fixes both of these to now point
relative (locally) and remove the . t the end so they work again.

meson/evas_loader_conf.sh

index 5ed40e3..4ff60c3 100755 (executable)
@@ -3,7 +3,7 @@
 original_loader=$1
 filename="$(basename $original_loader)"
 ext="${ext##*.}"
-original_name="$(basename $original_loader $ext)"
+original_name="$(basename $original_loader .$ext)"
 loader_dir="$(dirname $original_loader)"
 loader="$(basename $original_loader)"
 loader_name="$(echo $original_name | cut -f 1 -d '.')"
@@ -14,5 +14,5 @@ if [ ${original_loader: -3} == "$ext" ]
 fi
 
 for x in "${@:2}"; do
-  ln -sf "$DESTDIR"/"$loader_dir"/"$original_name" "$DESTDIR"/"$loader_dir"/"$loader_name"."$x"
-done
\ No newline at end of file
+  ln -sf "$original_name" "$DESTDIR"/"$loader_dir"/"$loader_name"."$x"
+done