summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2018-12-13 11:08:01 (GMT)
committerLzu Tao <taolzu@gmail.com>2018-12-13 11:08:01 (GMT)
commit34dcc5e16d281a11dbccdb238cefdee678d075d5 (patch)
tree8f1fa8e79acb4d6a8c0ccddb0b1193f833152619 /contrib
parent7f8b0175a9edccd8da7b75d298a3a200df6cea5b (diff)
downloadlz4-34dcc5e16d281a11dbccdb238cefdee678d075d5.zip
lz4-34dcc5e16d281a11dbccdb238cefdee678d075d5.tar.gz
lz4-34dcc5e16d281a11dbccdb238cefdee678d075d5.tar.bz2
Simplify logic by setting default value for MESON_INSTALL_DESTDIR_PREFIX
Diffstat (limited to 'contrib')
-rw-r--r--contrib/meson/InstallSymlink.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/meson/InstallSymlink.py b/contrib/meson/InstallSymlink.py
index d0f5151..3f2998c 100644
--- a/contrib/meson/InstallSymlink.py
+++ b/contrib/meson/InstallSymlink.py
@@ -45,11 +45,9 @@ def main():
args = parser.parse_args()
dir_mode = int(args.mode, 8)
- install_dir = pathlib.Path(args.install_dir)
- meson_destdir = os.environ.get('MESON_INSTALL_DESTDIR_PREFIX')
- if meson_destdir:
- install_dir = pathlib.Path(meson_destdir).joinpath(install_dir)
+ meson_destdir = os.environ.get('MESON_INSTALL_DESTDIR_PREFIX', default='')
+ install_dir = pathlib.Path(meson_destdir, args.install_dir)
install_symlink(args.source, args.dest, install_dir, args.isdir, dir_mode)