diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-12 00:27:48 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-12 00:28:05 -0500 |
commit | 3459faf6594a610d577955a28cd4035285a90fff (patch) | |
tree | f51d21b9328728cdf003b12b67d7bb8a3b9e0108 /make | |
parent | 5841ae1085029ac27b15e9113a34452dd1c9aa1f (diff) |
improved ./make portability
Diffstat (limited to 'make')
-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 |