create-sys-script: adapt to separate build dir, modernize, add more checks
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Sep 2017 10:27:21 +0000 (12:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Sep 2017 10:27:21 +0000 (12:27 +0200)
commit227ef9bc38804b04620420f57226246fab1a0a9c
tree9b3502ab517770fb438a6a1b3f381d3ea70d48f5
parent01a65d4180446661732d90d23a24ab692d279295
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.
test/create-sys-script.py
test/sys-script.py