base.bbclass: Add base_path_relative.
authorChris Larson <clarson@mvista.com>
Fri, 13 Mar 2009 20:35:56 +0000 (13:35 -0700)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 03:40:53 +0000 (20:40 -0700)
commit4cd7e03d78aed8ee6f3bd18d569a0ee9b2587633
treedbcea87a4931f08e58af4d27e9e483f58bf10677
parentcca2065fe51746581e17a0dce3acab9a91196fc6
base.bbclass: Add base_path_relative.

base_path_relative returns a relative path from src to dest.

Examples:

>>> base_path_relative("/usr/bin", "/tmp/foo/bar")
../../tmp/foo/bar

>>> base_path_relative("/usr/bin", "/usr/lib")
../lib

>>> base_path_relative("/tmp", "/tmp/foo/bar")
foo/bar

Signed-off-by: Chris Larson <clarson@mvista.com>
classes/base.bbclass