aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/SuckItFos
diff options
context:
space:
mode:
authordvs12025-01-26 14:14:17 +1000
committerdvs12025-01-26 14:14:17 +1000
commit485e1065098ba2b8ae1397f8f48b027f148d66d3 (patch)
treee048e71aa0aec72af08cd90422720b29e20dacb9 /SuckItFos
parenteverything TODO++ (diff)
downloadnotYetAnotherWiki-485e1065098ba2b8ae1397f8f48b027f148d66d3.zip
notYetAnotherWiki-485e1065098ba2b8ae1397f8f48b027f148d66d3.tar.gz
notYetAnotherWiki-485e1065098ba2b8ae1397f8f48b027f148d66d3.tar.bz2
notYetAnotherWiki-485e1065098ba2b8ae1397f8f48b027f148d66d3.tar.xz
Moar everything!
Cleaned up the display. Added a time stamp. SORTED!
Diffstat (limited to 'SuckItFos')
-rwxr-xr-xSuckItFos3
1 files changed, 2 insertions, 1 deletions
diff --git a/SuckItFos b/SuckItFos
index 0f6f8a8..dc65505 100755
--- a/SuckItFos
+++ b/SuckItFos
@@ -17,12 +17,13 @@ find /opt/Foswiki/data ${filter} \
17do 17do
18 base=`echo "${line}" | cut -d '/' -f 1` 18 base=`echo "${line}" | cut -d '/' -f 1`
19 file=`echo "${line}" | cut -d '/' -f 2- | rev | cut -b 5- | rev` 19 file=`echo "${line}" | cut -d '/' -f 2- | rev | cut -b 5- | rev`
20 time=`date --rfc-3339=seconds -ur /opt/Foswiki/data/${base}/${file}.txt | cut -d '+' -f 1`
20 mkdir -p Foswiki/$base 21 mkdir -p Foswiki/$base
21 mkdir -p Foswiki/${base}/`dirname ${file}` 22 mkdir -p Foswiki/${base}/`dirname ${file}`
22 mkdir -p combined/$base 23 mkdir -p combined/$base
23 mkdir -p combined/${base}/`dirname ${file}` 24 mkdir -p combined/${base}/`dirname ${file}`
24 echo "Converting ${URL}/${base}/${file}?cover=print -> Foswiki/${base}/${file}.md" 25 echo "Converting ${URL}/${base}/${file}?cover=print -> Foswiki/${base}/${file}.md"
25 echo -e "ogWiki=Foswiki\nogURL=${URL}/${base}/${file}\n" > Foswiki/${base}/${file}.md.md 26 echo -e "ogWiki=Foswiki\nogURL=${URL}\nogBase=${base}\nogFile=${file}\ntimestamp=${time}\n" > Foswiki/${base}/${file}.md.md
26 # 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. 27 # 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.
27 curl --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM 28 curl --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM
28 cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL 29 cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL