From 27dedabde3d8b996e3c841864827f81ea206c43c Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 21 Jan 2021 13:02:27 -0500
Subject: automated rotation process
---
Makefile | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
(limited to 'Makefile')
diff --git a/Makefile b/Makefile
index 568631b..14930fd 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,8 @@ all: $(PDF)
TABLE = gen/deathtable.i gen/deathtable2.i gen/table.i gen/pvals.i
clean:
- rm -rf {report,poster,logbook}{,2}.{pdf,log} qr gen graph imgs
+ rm -rf {report,poster,logbook}{,2}.{pdf,log} qr gen graph imgs \
+ img/rot img/*.rot.jpg
.tex.pdf:
$(PDFTEX) -jobname $* $<
@@ -52,7 +53,7 @@ graph/nearest_neighbor.png report/tables.i src/conc2.i src/bullets.i
report.pdf logbook.pdf: img/2019-10-30-1.jpg img/2019-11-21-1.jpg \
img/2019-11-21-2.jpg img/2019-11-21-3.jpg img/2019-12-02-1.jpg src/conc.i \
-img/2019-12-13-1.jpg img/2019-12-13-3.rot.jpg fmt/doc.h report/tables.i
+img/2019-12-13-1.jpg img/rot fmt/doc.h report/tables.i
poster2.pdf: imgs
@@ -107,3 +108,9 @@ graph/boxplot.png: py/data2.py py/lineplot.py graph/dir
graph/lineplot.png: py/data2.py py/boxplot.py graph/dir
$(PY) py/lineplot.py
mv lineplot.png graph/
+
+img/rot:
+ for img in img/*; do \
+ magick "$${img}" -rotate 90 "$$(echo "$$img" | cut -f 1 -d '.').rot.jpg"; \
+ echo $${img}; done
+ touch img/rot
--
cgit