shithub: img

Download patch

ref: 033a6e5dcb780c01fe27f6fb4a379820cb91c876
parent: bd22a6b47e28dcecb694bba4f87dc340755b0957
author: Alex Musolino <amusolino@topcon.com>
date: Mon Nov 14 10:52:55 EST 2022

mkpages.rc: fix to work with non-JPG "full" images

--- a/mkpages.rc
+++ b/mkpages.rc
@@ -34,7 +34,7 @@
 </html>'
 }
 
-ls *.full.JPG | sed 's/\.full\.JPG//' | awk '{
+ls *.full.* | sed 's/\.full\.[A-Z]\+$//' | awk '{
 	if (buf){
 		i = NR - 1
 		p = i - 1
@@ -41,7 +41,7 @@
 		if(p < 1)
 			p = ""
 		n = i + 1
-		printf "mkpage %s.big.JPG %s.full.JPG ''%s'' ''%s'' >%d.html\n", buf, buf, p, n, i
+		printf "mkpage %s.big.JPG %s.full.* ''%s'' ''%s'' >%d.html\n", buf, buf, p, n, i
 	}
 	buf = $0
 }
@@ -48,5 +48,5 @@
 END{
 	i = NR
 	p = i - 1
-	printf "mkpage %s.big.JPG %s.full.JPG ''%s'' '''' >%d.html\n", buf, buf, p, i
+	printf "mkpage %s.big.JPG %s.full.* ''%s'' '''' >%d.html\n", buf, buf, p, i
 }' | rc