aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-12 00:27:48 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-12 00:28:05 -0500
commit3459faf6594a610d577955a28cd4035285a90fff (patch)
treef51d21b9328728cdf003b12b67d7bb8a3b9e0108
parent5841ae1085029ac27b15e9113a34452dd1c9aa1f (diff)
improved ./make portability
-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