Fix install if the binary has a suffix due to build=debug etc.

This commit is contained in:
Sergey Popov 2012-05-01 16:19:51 +00:00
parent 2b4303923e
commit fe6e89b563

View file

@ -59,6 +59,7 @@ def InstallBinary(env, source):
return source
binary = source[0].name
binary = binary.split("-")[0]
installdir = env.subst(os.path.join(env["destdir"], env["bindir"].lstrip("/")))
env.Alias("install-" + binary,
env.InstallAs(os.path.join(installdir, binary + env["program_suffix"]), source)