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! --- SuckItFos | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SuckItFos') diff --git a/SuckItFos b/SuckItFos index 0f6f8a8..dc65505 100755 --- a/SuckItFos +++ b/SuckItFos @@ -17,12 +17,13 @@ find /opt/Foswiki/data ${filter} \ do base=`echo "${line}" | cut -d '/' -f 1` file=`echo "${line}" | cut -d '/' -f 2- | rev | cut -b 5- | rev` + time=`date --rfc-3339=seconds -ur /opt/Foswiki/data/${base}/${file}.txt | cut -d '+' -f 1` mkdir -p Foswiki/$base mkdir -p Foswiki/${base}/`dirname ${file}` mkdir -p combined/$base mkdir -p combined/${base}/`dirname ${file}` echo "Converting ${URL}/${base}/${file}?cover=print -> Foswiki/${base}/${file}.md" - echo -e "ogWiki=Foswiki\nogURL=${URL}/${base}/${file}\n" > Foswiki/${base}/${file}.md.md + echo -e "ogWiki=Foswiki\nogURL=${URL}\nogBase=${base}\nogFile=${file}\ntimestamp=${time}\n" > Foswiki/${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 --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL -- cgit v1.1