From 3459faf6594a610d577955a28cd4035285a90fff Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sun, 12 Jan 2020 00:27:48 -0500
Subject: improved ./make portability
---
make | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'make')
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
--
cgit