libvirt/scripts/meson-install-dirs.py
Daniel P. Berrangé cb3a6e8806 scripts: add execute permission to several files
Most, but not all, files in scripts have execute permission. While we
don't need this in order to launch them via meson/ninja build rules,
it is nice to direct execution if they have execution permission. This
makes the practice consistent across all scripts.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-03-17 11:35:54 +00:00

10 lines
197 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
destdir = os.environ.get('DESTDIR', os.sep)
for dirname in sys.argv[1:]:
os.makedirs(os.path.join(destdir, dirname.strip(os.sep)), exist_ok=True)