1
0
This commit is contained in:
dtb 2023-02-08 22:44:07 -05:00
parent 7c46e4c46c
commit 914f673cf6

View File

@ -56,10 +56,10 @@ with open('../$0', 'r') as f:
with open(day.split('\n')[0]+'.html', 'x') as g: with open(day.split('\n')[0]+'.html', 'x') as g:
g.write(prefix+day+'\n'+suffix) g.write(prefix+day+'\n'+suffix)
";cd blah;for f in *.html;do #in glob we trust ";cd blah;for f in *.html;do #in glob we trust
test -z "$last" || sed -i "s,__NAVIGATION__,$nav<A HREF=\"$f\">\&gt;</A></P>," \ test -z "$last" || sed -i "s,_NAVIGATION_,$nav<A HREF=\"$f\">\&gt;</A></P>," \
"$last";nav="<P>";test -z "$last"||nav="$nav<A HREF=\"$last\">\&lt;</A>" "$last";nav="<P>";test -z "$last"||nav="$nav<A HREF=\"$last\">\&lt;</A>"
nav="$nav<A HREF=\"index.html\">^</A>";last="$f";done nav="$nav<A HREF=\"index.html\">^</A>";last="$f";done
sed -i "s,__NAVIGATION__,$nav</P>," "$last";for f in *.html;do #e unibus puellam sed -i "s,_NAVIGATION_,$nav</P>," "$last";for f in *.html;do #e unibus puellam
fi="$(echo "$f" | cut -d . -f 1)";test "$fi" = "index" && continue fi="$(echo "$f" | cut -d . -f 1)";test "$fi" = "index" && continue
printf '<A HREF="/blah/%s.html">%s</A>\n' "$fi" "$fi"; done|sort -r|\ printf '<A HREF="/blah/%s.html">%s</A>\n' "$fi" "$fi"; done|sort -r|\
sed -e "1i<!DOCTYPE html><HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY><PRE>\ sed -e "1i<!DOCTYPE html><HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY><PRE>\