ref: f685133b8e7c756b7b42a242da87400a658d9afb
parent: 023bf826a187b0914285b1930cd13951c4c2cdfd
author: sirjofri <sirjofri@sirjofri.de>
date: Mon Jan 3 15:01:04 EST 2022
updates script to match new date version
--- a/mkfile
+++ b/mkfile
@@ -6,6 +6,9 @@
nl='
'
+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 pub/files/head.html pub/files/foot.html
echo 'Build complete'
@@ -21,7 +24,7 @@
echo '.PP
.PP
.B'
- echo `"{date -m `{basename $i | sed 's:\.ms$::g' | tr -d $nl}}^:
+ echo `"{date -f $dfmt `{basename $i | sed 's:\.ms$::g' | tr -d $nl}}^:
echo .R
cat $i
echo
@@ -39,7 +42,7 @@
<email>sirjofri@sirjofri.de</email>
</author>
<link rel="self" href="'^$DOMAIN^'changeblog.xml"/>
- <rights>© Copyright 2020 sirjofri</rights>
+ <rights>© Copyright '^$"year^' sirjofri</rights>
<id>'^$"DOMAIN^'</id>
<title>changeblog</title>
<updated>'^`"{date -t | tr -d $nl}^'</updated>'
@@ -72,7 +75,7 @@
<email>sirjofri@sirjofri.de</email>
</author>
<link rel="self" href="'^$DOMAIN^'changeblog.plain.xml"/>
- <rights>© Copyright 2020 sirjofri</rights>
+ <rights>© Copyright '^$year^' sirjofri</rights>
<id>'^$"DOMAIN^'</id>
<title>changeblog</title>
<updated>'^`"{date -t | tr -d $nl}^'</updated>'
@@ -104,7 +107,7 @@
echo '<article>
<header>
<h2>'^$"title^'</h2>
- <b>'^`"{date -m $stem | tr -d $nl}^'</b>
+ <b>'^`"{date -f $dfmt $stem | tr -d $nl}^'</b>
</header>'
htmlroff -ms changeblog/$stem.ms
echo '</article>'
@@ -122,7 +125,7 @@
obs=`{ls -r changeblog/*.ms | sed -e 's/\.ms$//g' -e 's:changeblog/::g'}
for(OB in $obs){
OBN=`{sed -n '/^\.HTML /s:\.HTML::p' changeblog/^$OB^.ms | tr -d $nl}
- echo '<li><a href="/changeblog/'^$OB^'/">'^`"{date -m $OB | tr -d $nl}^': '^$"OBN^'</a></li>' >> $target
+ echo '<li><a href="/changeblog/'^$OB^'/">'^`"{date -f $dfmt $OB | tr -d $nl}^': '^$"OBN^'</a></li>' >> $target
}
echo '</ul>
</section>' >> $target