#!/bin/bash cd "$(dirname "$0")" echo "Generating plots" rm -rf src/plot ../hardware/generate_plot.sh cp -r ../hardware/plot src echo "Generating plot includes" rm -rf src/inc_dispensy_sch.md for f in src/plot/dispensy_sch.svg/*.svg; do file=`echo $f | sed 's:src/:./:g'` name=`echo $f | sed 's:src/plot/dispensy_sch.svg/::g' | sed 's:.svg::g'` echo "