diff options
author | unknown <jimw@mysql.com> | 2005-07-05 12:56:47 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-07-05 12:56:47 -0700 |
commit | 04a3b7cc65d18f8aafcc1650aa31f65e2a03d7db (patch) | |
tree | 5a5a281b47fe42ac043b0499807af49ba87eb7b3 /scripts | |
parent | 7b4dd1084db9cbe2d0c0d36fd1593900eff8f77c (diff) | |
parent | 34ec3b0a29f16c36cea79d7580af6c4727a1e982 (diff) | |
download | mariadb-git-04a3b7cc65d18f8aafcc1650aa31f65e2a03d7db.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-10986
into mysql.com:/home/jimw/my/mysql-4.1-clean
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_config.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh index a5c8af5ecb2..16e50c044ca 100644 --- a/scripts/mysql_config.sh +++ b/scripts/mysql_config.sh @@ -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` |