1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-22 01:50:10 +03:00

create-sys-script: adapt to separate build dir, modernize, add more checks

The script wasn't apparently used since the switch to meson, because
it required the sys subdirectory to be present in the same subdirectory
where the output script is located.

Let's use f-strings to make the whole thing more readable. Add some
extra checks.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-09-29 12:27:21 +02:00
parent 01a65d4180
commit 227ef9bc38
2 changed files with 28 additions and 24 deletions

View File

@ -32,7 +32,6 @@ def f(path, mode, contents):
f.write(contents)
os.chmod(path, mode)
if len(sys.argv) < 2:
exit("Usage: {} <target dir>".format(sys.argv[0]))