mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-20 15:00:08 +01:00
This is generally not recommended (dbus should usually be installed from the OS distributor's packages, which should install into a staging directory using `DESTDIR`), but we'll want to use it in Gitlab-CI. Signed-off-by: Simon McVittie <smcv@collabora.com>
19 lines
519 B
Python
Executable file
19 lines
519 B
Python
Executable file
#!/usr/bin/env python3
|
|
# Copyright 2022 Collabora Ltd.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Compatibility shim for installing empty directories with Meson < 0.60
|
|
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
for d in sys.argv[1].split(':'):
|
|
if os.path.isabs(d):
|
|
p = Path(d)
|
|
d = p.relative_to(p.anchor)
|
|
dest = os.path.join(os.environ.get('DESTDIR', '/'), d)
|
|
else:
|
|
dest = os.path.join(os.environ['MESON_INSTALL_DESTDIR_PREFIX'], d)
|
|
|
|
os.makedirs(dest, mode=0o755, exist_ok=True)
|