#!/bin/sh create(){ mkdir imgs cd imgs python3 ../data.py img || python ../data.py img || echo "You must install python3" cd .. mkdir graph cd graph python3 ../data.py depwid || python ../data.py depwid python3 ../data.py nei || python ../data.py nei cd .. cd document pdftex report.tex || echo "You must install \`pdftex\` (MacTeX, TeXLive, MikTeX, etc)" cd .. } create 2>/dev/null