1
0
forked from GitHub/gf-rgl

revert the change. GF_LIB_PATH needs to be checked

This commit is contained in:
Krasimir Angelov
2022-08-24 14:32:47 +02:00
parent fc1ca4b8f1
commit c5606ff55d
3 changed files with 20 additions and 2 deletions

View File

@@ -35,6 +35,9 @@ for arg in "$@"; do
done
# Try to determine install location
if [ -z "$dest" ]; then
dest=$(echo "$GF_LIB_PATH" | sed 's/:.*$//')
fi
if [ -z "$dest" ] && [ "$(gf --version | tail -1 | cut -c -14)" == "Shared folder:" ]; then
dest=$(gf --version | tail -1 | cut -c 16-)
if [ -n "$dest" ]; then dest="${dest}/lib"; fi
@@ -42,6 +45,7 @@ fi
if [ -z "$dest" ]; then
echo "Unable to determine where to install the RGL. Please do one of the following:"
echo " - Pass the --dest=... flag to this script"
echo " - Set the GF_LIB_PATH environment variable"
echo " - Compile & install GF from the gf-core repository"
exit 1
fi