From: Date: June 25 2005 2:59am Subject: bk commit into 4.1 tree (jimw:1.2318) BUG#10986 List-Archive: http://lists.mysql.com/internals/26423 X-Bug: 10986 Message-Id: <20050625005924.98732A89C0@rama.trainedmonkey.com> Below is the list of changes that have just been committed into a local 4.1 repository of jimw. When jimw does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.2318 05/06/24 17:59:19 jimw@stripped +1 -0 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 1.18 05/06/24 17:55:50 jimw@stripped +13 -5 If mysql_config is a symlink, try to resolve it # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: jimw # Host: rama.(none) # Root: /home/jimw/my/mysql-4.1-10986 --- 1.17/scripts/mysql_config.sh 2005-02-04 14:21:11 -08:00 +++ 1.18/scripts/mysql_config.sh 2005-06-24 17:55:50 -07:00 @@ -60,11 +60,19 @@ 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`