summaryrefslogtreecommitdiff
path: root/build_a_system.sh
blob: 254c583b7277e061f1d679acb55d2a8d622b83a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# Script to build a defined set of definitions

system_name="$1"

definitions_dir=/home/patrickdarley/definitions
ybd_dir=/home/patrickdarley/ybd

# Building is optimal with 5 "instances" on the monster machine
sed -i '/^instances: /c\instances: 5' /home/patrickdarley/ybd/config/ybd.conf

# will this build things - No. 
# "$ybd_dir"/ybd.py "$definitions_dir"/systems/"$system_name" 

# try changing to the definitions dir then building
# ybd seems to set the "target" to be current dir, regardless

cd "$definitions_dir"

sudo "$ybd_dir"/ybd.py systems/"$system_name"