Fixed passing paths with destdir joined in -DWESNOTH_PATH etc.

This commit is contained in:
Sergey Popov 2008-06-24 16:02:23 +00:00
parent 96ca696582
commit 02169e41e0

View File

@ -263,9 +263,6 @@ installdirs = Split("bindir datadir fifodir icondir desktopdir mandir docdir pyt
for d in installdirs:
env[d] = os.path.join(env["prefix"], env[d])
for d in installdirs:
env[d] = os.path.join("/", env["destdir"], env[d].lstrip("/"))
test_env = env.Clone()
if boost_test_dyn_link:
test_env.Append(CPPDEFINES = "BOOST_TEST_DYN_LINK")
@ -345,6 +342,8 @@ if env["dummy_locales"]:
# and doc files.
#
for d in installdirs:
env[d] = os.path.join("/", env["destdir"], env[d].lstrip("/"))
bindir = env['bindir']
pythonlib = env['python_site_packages_dir']
datadir = env['datadir']