diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-12-17 01:25:46 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-12-17 01:25:46 -0500 |
commit | 86c6a4bdf261845348b0452ef1099d82e134c2a0 (patch) | |
tree | 625a0cfffa478e9d49a9f61f1614fc88dc0d1488 /scripts/util.py | |
parent | 27fa086f072b1499075de700350b664f9c25cb25 (diff) | |
download | vyos-build-86c6a4bdf261845348b0452ef1099d82e134c2a0.tar.gz vyos-build-86c6a4bdf261845348b0452ef1099d82e134c2a0.zip |
Add initial drafts of the build scripts.
Diffstat (limited to 'scripts/util.py')
-rw-r--r-- | scripts/util.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/util.py b/scripts/util.py new file mode 100644 index 00000000..740d4ccc --- /dev/null +++ b/scripts/util.py @@ -0,0 +1,10 @@ +import sys +import os + +import defaults + +def check_build_config(): + if not os.path.exists(defaults.BUILD_CONFIG): + print("Build config file ({file}) does not exist".format(file=defaults.BUILD_CONFIG)) + print("If you are running this script by hand, you should better not. Run 'make iso' instead.") + sys.exit(1) |