ref: 13de4ea5f58e45a07e4609bde44c619ab2cc9bec
parent: 3745706a59883c8c2afae22522e44dec374f2c2d
author: sirjofri <sirjofri@sirjofri.de>
date: Tue Jun 23 09:24:24 EDT 2020
reverse order of blog
--- a/mkfile
+++ b/mkfile
@@ -1,5 +1,5 @@
PATHS=`{ls *.ht | sed -e 's/\.ht$//g' | grep -v 'index' | grep -v 'changeblog/';ls changeblog/*.ms | sed -e 's/\.ms$//g'}
-BLOG=`{ls changeblog/*.ms | sed -e 's/\.ms$/.ht/g'}
+BLOG=`{ls -r changeblog/*.ms | sed -e 's/\.ms$/.ht/g'}
OBJECTS=`{echo 'pub/'^$PATHS^'/index.html'}
DOMAIN='https://sirjofri.de/'
@@ -13,7 +13,7 @@
echo 'Prepare complete'
mk build
-pub/changeblog/changeblog.pdf:Q: `{ls changeblog/*.ms}
+pub/changeblog/changeblog.pdf:Q: `{ls -r changeblog/*.ms}
{
echo '.TL
sirjofri.de changeblog'
@@ -28,7 +28,7 @@
} | troff -ms | lp -dstdout | ps2pdf > $target
echo '√ '^$target^' created'
-pub/changeblog.xml:Q: `{ls changeblog/*.ms}
+pub/changeblog.xml:Q: `{ls -r changeblog/*.ms}
{
echo '<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
@@ -81,7 +81,7 @@
<a href="changeblog.pdf">Download pdf</a><br>
<a href="/changeblog.xml">Feed</a><br>
<ul>' > $target
- obs=`{ls changeblog/*.ms | sed -e 's/\.ms$//g' -e 's:changeblog/::g'}
+ 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