From b6a9987bf48bec9e96a0dfad86b89ec882262692 Mon Sep 17 00:00:00 2001 From: Sidney Mau Date: Thu, 28 Dec 2017 02:57:33 -0600 Subject: [PATCH] Automation scratch script --- automate.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 automate.sh diff --git a/automate.sh b/automate.sh new file mode 100644 index 0000000..151254a --- /dev/null +++ b/automate.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +# Generate simple_dir from config.yaml +echo "Sourcing config..." +simple_dir=$(grep 'simple_dir' config.yaml | awk 'NF>1{print $NF}') +eval simple_dir=$simple_dir + +# Run farm_simple.py +echo "Farming simple..." +farm_simple="$simple_dir/farm_simple.py" +#python $farm_simple + +# wait... + +# Run make_list.py +echo "Compiling candidate list..." +make_list="$simple_dir/make_list.py" +#python $make_list + +# Run farm_plots.py +echo "Farming plots..." +farm_plots="$simple_dir/farm_plots.py" +#python $farm_plots + +# wait... + +# Tarball deliverable +echo "Tarring..." +save_dir=$(grep 'save_dir' config.yaml | awk 'NF>1{print $NF}') +eval save_dir=$save_dir +tar -czf simple_plots.tar.gz $save_dir