]> git.droids-corp.org - dpdk.git/blobdiff - buildtools/relpath.sh
buildtools: allow symlinks within a source directory
[dpdk.git] / buildtools / relpath.sh
index 4ff4671e937bb44b43c5ef3c1cba782ead2f336e..139b7813e91cc02a053e909bd713f8decedd21ac 100755 (executable)
@@ -44,7 +44,7 @@ if [ $# -ne 2 ]; then
 fi
 
 # get the real absolute path, derefencing symlinks
-ABS1=$(readlink -f $1)
+ABS1="$(dirname $(readlink -f $1))/$(basename $1)"
 ABS2=$(readlink -f $2)
 
 # remove leading slash