bowl 3
This commit is contained in:
parent
7c46e4c46c
commit
914f673cf6
@ -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\">\></A></P>," \
|
test -z "$last" || sed -i "s,_NAVIGATION_,$nav<A HREF=\"$f\">\></A></P>," \
|
||||||
"$last";nav="<P>";test -z "$last"||nav="$nav<A HREF=\"$last\">\<</A>"
|
"$last";nav="<P>";test -z "$last"||nav="$nav<A HREF=\"$last\">\<</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>\
|
||||||
|
Loading…
Reference in New Issue
Block a user