aboutsummaryrefslogtreecommitdiff
path: root/builder_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'builder_install.py')
-rwxr-xr-xbuilder_install.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder_install.py b/builder_install.py
index d899d51..67537db 100755
--- a/builder_install.py
+++ b/builder_install.py
@@ -69,11 +69,14 @@ def install_targets(d):
fullfilename = t[0]
outdir = t[1]
fname = os.path.split(fullfilename)[1]
+ aliases = t[2]
outname = os.path.join(outdir, fname)
print('Installing %s to %s' % (fname, outdir))
os.makedirs(outdir, exist_ok=True)
shutil.copyfile(fullfilename, outname)
shutil.copystat(fullfilename, outname)
+ for alias in aliases:
+ os.symlink(fname, os.path.join(outdir, alias))
p = subprocess.Popen([d.depfixer, outname, d.dep_prefix], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
(stdo, stde) = p.communicate()