X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=buildtools%2Frelpath.sh;fp=buildtools%2Frelpath.sh;h=139b7813e91cc02a053e909bd713f8decedd21ac;hp=4ff4671e937bb44b43c5ef3c1cba782ead2f336e;hb=7a514a0070e871f8383c6839b90d2714ecc90e18;hpb=9759f4cc5a85e04c6bd1876c9f2bfadb7607a062 diff --git a/buildtools/relpath.sh b/buildtools/relpath.sh index 4ff4671e93..139b7813e9 100755 --- a/buildtools/relpath.sh +++ b/buildtools/relpath.sh @@ -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