summaryrefslogtreecommitdiff
path: root/build_a_system.sh
diff options
context:
space:
mode:
authorPatrick Darley <patrickdarley@ip-172-31-16-103.eu-west-1.compute.internal>2015-09-10 10:26:46 +0000
committerPatrick Darley <patrickdarley@ip-172-31-16-103.eu-west-1.compute.internal>2015-09-10 10:26:46 +0000
commit5bc01ff1f983dbf88bbd606118762663beccfcfb (patch)
tree32fb4e3fd0d790a363382bcf9829ad78c0a04daa /build_a_system.sh
parentef4ca2624591047e2c2d2e478add2c99636171f7 (diff)
downloadbuildslave-scripts-5bc01ff1f983dbf88bbd606118762663beccfcfb.tar.gz
Crude build script
Should work provided the inputs are right. Currently no error handeling or anything fancy at all. It is crude and crappy.
Diffstat (limited to 'build_a_system.sh')
-rwxr-xr-xbuild_a_system.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/build_a_system.sh b/build_a_system.sh
new file mode 100755
index 0000000..5fca8cb
--- /dev/null
+++ b/build_a_system.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Script to build a defined set of definitions
+
+system_name="$1"
+
+definitions_dir=/home/patrickdarley/definitions
+ybd_dir=/home/patrickdarley/ybd
+
+echo "$system_name"
+echo "$definitions_dir"/systems/"$system_name"
+echo "$ybd_dir"/ybd.py
+
+# A will this build things
+# "$ybd_dir"/ybd.py "$definitions_dir"/systems/"$system_name"
+
+#try changing to the definitions dir
+
+cd "$definitions_dir"
+
+sudo "$ybd_dir"/ybd.py systems/"$system_name"