From e80c607e21ca96704ebbf62f4a52b1bbc9a1c223 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sun, 2 Feb 2020 13:19:53 -0500
Subject: Makefile compiles images in jpgs dir into a pdf with ctime dates
---
Makefile | 15 +++++++++++++++
make.pre.tex | 22 ++++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 100644 Makefile
create mode 100644 make.pre.tex
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1da8e9d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+imgs := $(shell ls jpgs)
+
+make.pdf : make.tex
+ pdftex make.tex
+make.tex : make.pre.tex
+ cp make.pre.tex make.tex;
+ for img in $(imgs);\
+ do echo "\img{jpgs/$$img}{$$(stat hires/$$img\
+ | awk '/Mod/ {a=substr($$0, 9, length($$0)-24); split(a, b); split(b[2], c, ":"); print b[1] "\\\\par" c[1] + 4 ":" c[2] ":" c[3];}')}" >> make.tex; done;
+ echo "\\\\bye" >> make.tex
+
+.PHONY : clean
+clean :
+ rm -f make.tex make.pdf
+
diff --git a/make.pre.tex b/make.pre.tex
new file mode 100644
index 0000000..1042b22
--- /dev/null
+++ b/make.pre.tex
@@ -0,0 +1,22 @@
+\input color
+\font\text=cmssbx10 at 48pt
+\definecolor{gray}{rgb}{0.7,0.7,0.7}
+\color{gray}\text\baselineskip=60pt
+
+\pdfcatalog{
+ /PageMode /FullScreen
+}
+\voffset=-1in \hoffset=-1in
+\vsize=6in \hsize=6in
+\pdfpageheight=6in \pdfpagewidth=6in
+%\long\def\rlap#1{\hbox to 0pt{\hss#1}}
+\long\def\llap#1{\hbox to 0pt{\hss#1}}
+\long\def\img#1#2{%
+ \hbox{%
+ %\llap{\vbox{#2\vskip2in}}%
+ \vbox{\pdfximage height 6in width 6in{#1}\relax\pdfrefximage\pdflastximage}%
+ \llap{%
+ \vbox{#2\vskip.5\baselineskip}%
+ }%
+ }%
+}
--
cgit