mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 20:29:31 +00:00
Fix install if the binary has a suffix due to build=debug etc.
This commit is contained in:
parent
2b4303923e
commit
fe6e89b563
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user