1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

If mysql_config is a symlink, resolve it before trying to find the lib and

include directories relative to where it is located. (Bug #10986)


scripts/mysql_config.sh:
  If mysql_config is a symlink, try to resolve it
This commit is contained in:
unknown
2005-06-24 17:59:19 -07:00
parent a7e66efc2c
commit 11d2bb945f

View File

@ -60,11 +60,19 @@ fix_path ()
get_full_path ()
{
case $1 in
/*) echo "$1";;
./*) tmp=`pwd`/$1; echo $tmp | sed -e 's;/\./;/;' ;;
*) which $1 ;;
esac
file=$1
# if the file is a symlink, try to resolve it
if [ -h $file ];
then
file=`ls -l $file | awk '{ print $NF }'`
fi
case $file in
/*) echo "$file";;
*/*) tmp=`pwd`/$file; echo $tmp | sed -e 's;/\./;/;' ;;
*) which $file ;;
esac
}
me=`get_full_path $0`