]> Sergey Matveev's repositories - galgen.git/blobdiff - galgen.zsh
.html inclusion
[galgen.git] / galgen.zsh
index 0e03a3a99d8e7440a37acd3407565f460c61e199..521f4c389d4bec2f9e668d9ad6b3daeceb7afbdc 100755 (executable)
@@ -63,6 +63,7 @@ EOF
         cat ${img}.txt >> $dst
         echo "</pre>" >> $dst
     }
+    [[ -r ${img}.html ]] && cat ${img}.html >> $dst
     echo "<hr/>" >> $dst
     if [[ $img:e = jxl ]] ; then
         echo "<pre>" >> $dst
@@ -128,10 +129,13 @@ EOF
     </head>
 <body>
 EOF
-    [[ $p -eq 1 ]] && [[ -r .txt ]] && {
-        echo "<pre>" >> $dst
-        cat .txt >> $dst
-        echo "</pre>" >> $dst
+    [[ $p -eq 1 ]] && {
+        [[ -r .txt ]] && {
+            echo "<pre>" >> $dst
+            cat .txt >> $dst
+            echo "</pre>" >> $dst
+        }
+        [[ -r .html ]] && cat .html >> $dst
     }
     [[ $p -eq 1 ]] ||
         echo "<a href=\"$(( $p - 1 )).page.html\">&lt;&lt;&lt;</a>" >> $dst