diff options
-rwxr-xr-x | make | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,9 @@ #!/bin/sh +export orig="$(pwd)" +export dir="$(dirname $0)" create(){ +cd $dir mkdir imgs cd imgs python3 ../data.py img || python ../data.py img || echo "You must install python3" @@ -13,6 +16,7 @@ cd .. cd document pdftex report.tex || echo "You must install \`pdftex\` (MacTeX, TeXLive, MikTeX, etc)" cd .. +cd $orig } create 2>/dev/null |