summaryrefslogtreecommitdiff
path: root/scripts/check-config
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-12-17 01:25:46 -0500
committerDaniil Baturin <daniil@baturin.org>2015-12-17 01:25:46 -0500
commit86c6a4bdf261845348b0452ef1099d82e134c2a0 (patch)
tree625a0cfffa478e9d49a9f61f1614fc88dc0d1488 /scripts/check-config
parent27fa086f072b1499075de700350b664f9c25cb25 (diff)
downloadvyos-build-86c6a4bdf261845348b0452ef1099d82e134c2a0.tar.gz
vyos-build-86c6a4bdf261845348b0452ef1099d82e134c2a0.zip
Add initial drafts of the build scripts.
Diffstat (limited to 'scripts/check-config')
-rwxr-xr-xscripts/check-config14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/check-config b/scripts/check-config
new file mode 100755
index 00000000..3949869b
--- /dev/null
+++ b/scripts/check-config
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+import sys
+import os
+
+import defaults
+
+
+print("Checking build configuration")
+
+if not os.path.exists(defaults.BUILD_CONFIG):
+ print("Build config does not exist")
+ print("Please run the ./configure script and try again")
+ sys.exit(1)