aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/SuckItPm
diff options
context:
space:
mode:
authordvs12025-01-26 14:14:17 +1000
committerdvs12025-01-26 14:14:17 +1000
commit485e1065098ba2b8ae1397f8f48b027f148d66d3 (patch)
treee048e71aa0aec72af08cd90422720b29e20dacb9 /SuckItPm
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 'SuckItPm')
-rwxr-xr-xSuckItPm3
1 files changed, 2 insertions, 1 deletions
diff --git a/SuckItPm b/SuckItPm
index fd0b048..246f485 100755
--- a/SuckItPm
+++ b/SuckItPm
@@ -17,10 +17,11 @@ find /opt/pmwiki/wiki.d ${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` 19 file=`echo "${line}" | cut -d '.' -f 2`
20 time=`date --rfc-3339=seconds -ur /opt/pmwiki/wiki.d/${base}.${file} | cut -d '+' -f 1`
20 mkdir -p PmWiki/$base 21 mkdir -p PmWiki/$base
21 mkdir -p combined/$base 22 mkdir -p combined/$base
22 echo "Converting ${URL}/?n=${base}.${file}?action=print -> PmWiki/${base}/${file}.md" 23 echo "Converting ${URL}/?n=${base}.${file}?action=print -> PmWiki/${base}/${file}.md"
23 echo -e "ogWiki=PmWiki\nogURL=${URL}/?n=${base}.${file}\n" > PmWiki/${base}/${file}.md.md 24 echo -e "ogWiki=PmWiki\nogURL=${URL}\nogBase=${base}\nogFile=${file}\ntimestamp=${time}\n" > PmWiki/${base}/${file}.md.md
24 # 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. 25 # 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.
25# curl --no-progress-meter ${URL}/?n=${base}.${file}?action=markdown -o PmWiki/${base}/${file}.MD 26# curl --no-progress-meter ${URL}/?n=${base}.${file}?action=markdown -o PmWiki/${base}/${file}.MD
26 curl --no-progress-meter ${URL}/?n=${base}.${file}?action=print -o PmWiki/${base}/${file}.HTM 27 curl --no-progress-meter ${URL}/?n=${base}.${file}?action=print -o PmWiki/${base}/${file}.HTM