#!/bin/sh # Script to build a defined set of definitions set -ex system_name="$1" system_arch="$2" definitions_dir=$(pwd)/definitions ybd_dir=$(pwd)/ybd # Building is optimal with 5 "instances" on the monster machine sudo sed -i '/^instances: /c\instances: 5' "$ybd_dir"/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" "$system_arch"