aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/make b/make
index 7538f11..f6c35ea 100755
--- a/make
+++ b/make
@@ -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