From 485e1065098ba2b8ae1397f8f48b027f148d66d3 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sun, 26 Jan 2025 14:14:17 +1000 Subject: Moar everything! Cleaned up the display. Added a time stamp. SORTED! --- SuckItPm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SuckItPm') diff --git a/SuckItPm b/SuckItPm index fd0b048..246f485 100755 --- a/SuckItPm +++ b/SuckItPm @@ -17,10 +17,11 @@ find /opt/pmwiki/wiki.d ${filter} \ do base=`echo "${line}" | cut -d '.' -f 1` file=`echo "${line}" | cut -d '.' -f 2` + time=`date --rfc-3339=seconds -ur /opt/pmwiki/wiki.d/${base}.${file} | cut -d '+' -f 1` mkdir -p PmWiki/$base mkdir -p combined/$base echo "Converting ${URL}/?n=${base}.${file}?action=print -> PmWiki/${base}/${file}.md" - echo -e "ogWiki=PmWiki\nogURL=${URL}/?n=${base}.${file}\n" > PmWiki/${base}/${file}.md.md + echo -e "ogWiki=PmWiki\nogURL=${URL}\nogBase=${base}\nogFile=${file}\ntimestamp=${time}\n" > PmWiki/${base}/${file}.md.md # Doesn't help with redownloads, coz natch a dynamic site isn't cached. But I can at least comment out the curl command during testing to save time. # curl --no-progress-meter ${URL}/?n=${base}.${file}?action=markdown -o PmWiki/${base}/${file}.MD curl --no-progress-meter ${URL}/?n=${base}.${file}?action=print -o PmWiki/${base}/${file}.HTM -- cgit v1.1