From 090dc2da6abd7dfcb9ab22559ccb684700148794 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 17:32:38 -0400
Subject: ./configure replaces manual tex search
---
configure | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100755 configure
(limited to 'configure')
diff --git a/configure b/configure
new file mode 100755
index 0000000..91ce029
--- /dev/null
+++ b/configure
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+cp Makefile.orig Makefile
+for tgt in */document.tex; do
+ DIR=$(dirname $tgt)
+ ( echo; echo -n "${DIR}/document.pdf: ${DIR}/document.tex "; find $DIR \!\
+ -type d \! -name "document.tex" -a -name "*.tex" -exec echo {} +; ) >> Makefile
+done
--
cgit
From fd6f2bc4f1c97234b5d3d9989ea5fb4016969622 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 17:57:59 -0400
Subject: generalized python/pdftex/gs and added dep checks
---
configure | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
(limited to 'configure')
diff --git a/configure b/configure
index 91ce029..0e08c74 100755
--- a/configure
+++ b/configure
@@ -1,8 +1,18 @@
#!/bin/sh
+python3 --version >/dev/null|| echo "Install python3" && exit 1
+pdftex --version >/dev/null|| echo "Install pdftex (TeXLive)" && exit 1
+make -v >/dev/null || echo "Install make" && exit 1
+python -c "import numpy" >/dev/null || echo "Install numpy" && exit 1
+python -c "import scipy" >/dev/null || echo "Install scipy" && exit 1
+python -c "import matplotlib" >/dev/null || echo "Install matplotlib" && exit 1
+gs --version >/dev/null || echo "Ghostscript not installed (no PNG poster)"
+
cp Makefile.orig Makefile
for tgt in */document.tex; do
DIR=$(dirname $tgt)
- ( echo; echo -n "${DIR}/document.pdf: ${DIR}/document.tex "; find $DIR \!\
+ ( echo -en "\n${DIR}/document.pdf: ${DIR}/document.tex "; find $DIR \!\
-type d \! -name "document.tex" -a -name "*.tex" -exec echo {} +; ) >> Makefile
+ echo -e "\noutputs/${DIR}.pdf: ${DIR}/document.pdf outputs\n\tcp -f $< \$@"\
+ >> Makefile
done
--
cgit
From 644eb8e78f80bb8811a7abb72b25866a424ac633 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 18:08:24 -0400
Subject: dep-check was broken
---
configure | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
(limited to 'configure')
diff --git a/configure b/configure
index 0e08c74..ab40b19 100755
--- a/configure
+++ b/configure
@@ -1,11 +1,11 @@
#!/bin/sh
-python3 --version >/dev/null|| echo "Install python3" && exit 1
-pdftex --version >/dev/null|| echo "Install pdftex (TeXLive)" && exit 1
-make -v >/dev/null || echo "Install make" && exit 1
-python -c "import numpy" >/dev/null || echo "Install numpy" && exit 1
-python -c "import scipy" >/dev/null || echo "Install scipy" && exit 1
-python -c "import matplotlib" >/dev/null || echo "Install matplotlib" && exit 1
+python3 --version >/dev/null || ( echo "Install python3" && exit 1 )
+pdftex --version >/dev/null || ( echo "Install pdftex (TeXLive)" && exit 1 )
+make -v >/dev/null || ( echo "Install make" && exit 1 )
+python -c "import numpy" >/dev/null || ( echo "Install numpy" && exit 1 )
+python -c "import scipy" >/dev/null || ( echo "Install scipy" && exit 1 )
+python -c "import matplotlib" >/dev/null || ( echo "Install matplotlib" && exit 1 )
gs --version >/dev/null || echo "Ghostscript not installed (no PNG poster)"
cp Makefile.orig Makefile
--
cgit
From e56e36cb400c605baeec1f304927f9fe78bd428d Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 18:15:45 -0400
Subject: generalized gen/
---
configure | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'configure')
diff --git a/configure b/configure
index ab40b19..00d5722 100755
--- a/configure
+++ b/configure
@@ -9,6 +9,7 @@ python -c "import matplotlib" >/dev/null || ( echo "Install matplotlib" && exit
gs --version >/dev/null || echo "Ghostscript not installed (no PNG poster)"
cp Makefile.orig Makefile
+
for tgt in */document.tex; do
DIR=$(dirname $tgt)
( echo -en "\n${DIR}/document.pdf: ${DIR}/document.tex "; find $DIR \!\
@@ -16,3 +17,8 @@ for tgt in */document.tex; do
echo -e "\noutputs/${DIR}.pdf: ${DIR}/document.pdf outputs\n\tcp -f $< \$@"\
>> Makefile
done
+
+for gen in gen/*.orig.tex; do
+ BASE=$(basename $gen .orig.tex)
+ echo "gen/${BASE}.tex: gen/make${BASE}.sh gen/${BASE}.orig.tex" >> Makefile
+done
--
cgit
From 69a6e7cea14d7310d84012b4870eb3464046c6ff Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 18:26:02 -0400
Subject: outputs/ made into symlink
---
configure | 2 --
1 file changed, 2 deletions(-)
(limited to 'configure')
diff --git a/configure b/configure
index 00d5722..8789201 100755
--- a/configure
+++ b/configure
@@ -14,8 +14,6 @@ for tgt in */document.tex; do
DIR=$(dirname $tgt)
( echo -en "\n${DIR}/document.pdf: ${DIR}/document.tex "; find $DIR \!\
-type d \! -name "document.tex" -a -name "*.tex" -exec echo {} +; ) >> Makefile
- echo -e "\noutputs/${DIR}.pdf: ${DIR}/document.pdf outputs\n\tcp -f $< \$@"\
- >> Makefile
done
for gen in gen/*.orig.tex; do
--
cgit
From a58f693959514bad90848d6f65f2fa1c11c3da9c Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 18:28:01 -0400
Subject: made gen/ generator valid
---
configure | 1 +
1 file changed, 1 insertion(+)
(limited to 'configure')
diff --git a/configure b/configure
index 8789201..2e56ed4 100755
--- a/configure
+++ b/configure
@@ -19,4 +19,5 @@ done
for gen in gen/*.orig.tex; do
BASE=$(basename $gen .orig.tex)
echo "gen/${BASE}.tex: gen/make${BASE}.sh gen/${BASE}.orig.tex" >> Makefile
+ echo -e "\t$<\n" >> Makefile
done
--
cgit