diff options
author | Patrick Darley <patrickdarley@ip-172-31-16-103.eu-west-1.compute.internal> | 2015-09-10 10:26:46 +0000 |
---|---|---|
committer | Patrick Darley <patrickdarley@ip-172-31-16-103.eu-west-1.compute.internal> | 2015-09-10 10:26:46 +0000 |
commit | 5bc01ff1f983dbf88bbd606118762663beccfcfb (patch) | |
tree | 32fb4e3fd0d790a363382bcf9829ad78c0a04daa /build_a_system.sh | |
parent | ef4ca2624591047e2c2d2e478add2c99636171f7 (diff) | |
download | buildslave-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-x | build_a_system.sh | 21 |
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" |