Skip to content

Commit

Permalink
Automation scratch script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidney Mau committed Dec 28, 2017
1 parent 80f625e commit b6a9987
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions automate.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b6a9987

Please sign in to comment.