shithub: sirjofri_de

Download patch

ref: 721047e033a918cb9ade136244b9fa5b4a3c4541
parent: fde822e45d411fa496e2c540aa0b94d09d680c7a
author: sirjofri <sirjofri@sirjofri.de>
date: Sun Jul 30 14:07:40 EDT 2023

adjusts build script to work without preexisting .ht/.ms files

--- a/mkfile
+++ b/mkfile
@@ -1,5 +1,7 @@
 PATHS=`{ls *.ht | sed -e 's/\.ht$//g' | grep -v 'index' | grep -v 'changeblog/';ls changeblog/*.txt | sed -e 's/\.txt$//g'}
-BLOG=`{ls -r changeblog/*.txt | sed -e 's/\.txt$/.ht/g'}
+BLOGHT=`{ls -r changeblog/*.txt | sed -e 's/\.txt$/.ht/g'}
+BLOGMS=`{ls -r changeblog/*.txt | sed -e 's/\.txt$/.ms/g'}
+BLOG=`{echo $BLOGHT; echo $BLOGMS}
 OBJECTS=`{echo 'pub/'^$PATHS^'/index.html'}
 DOMAIN='https://sirjofri.de/'
 
@@ -9,7 +11,7 @@
 dfmt='WW, D MMM YY hh:mm:ss ZZZ'
 year=`{date -f YYYY | tr -d $nl}
 
-build:QV: changeblog.ht $OBJECTS pub/index.html pub/changeblog.xml pub/changeblog.plain.xml pub/changeblog/changeblog.pdf
+build:V: changeblog.ht $OBJECTS pub/index.html pub/changeblog.xml pub/changeblog.plain.xml pub/changeblog/changeblog.pdf
 	echo 'Build complete'
 
 prepare:QV: changeblog.ht
@@ -16,7 +18,7 @@
 	echo 'Prepare complete'
 	mk build
 
-pub/changeblog/changeblog.pdf:Q: `{ls -r changeblog/*.ms}
+pub/changeblog/changeblog.pdf:Q: $BLOGMS
 	{
 		echo '.TL
 	sirjofri.de changeblog'
@@ -33,7 +35,7 @@
 	} | troff -ms | lp -dstdout | ps2pdf > $target
 	echo '√ '^$target^' created'
 
-pub/changeblog.xml:Q: `{ls -r changeblog/*.ht}
+pub/changeblog.xml:Q: $BLOGHT
 	{
 		echo '<?xml version="1.0" encoding="utf-8"?>
 	<feed xmlns="http://www.w3.org/2005/Atom">
@@ -67,7 +69,7 @@
 	} > $target
 	echo '√ '^$target^' created'
 
-pub/changeblog.plain.xml:Q: `{ls -r changeblog/*.ms}
+pub/changeblog.plain.xml:Q: $BLOGMS
 	{
 		echo '<?xml version="1.0" encoding="utf-8"?>
 	<feed xmlns="http://www.w3.org/2005/Atom">