diff options
author | dvs1 | 2025-01-26 14:14:17 +1000 |
---|---|---|
committer | dvs1 | 2025-01-26 14:14:17 +1000 |
commit | 485e1065098ba2b8ae1397f8f48b027f148d66d3 (patch) | |
tree | e048e71aa0aec72af08cd90422720b29e20dacb9 /SuckItPm | |
parent | everything TODO++ (diff) | |
download | notYetAnotherWiki-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-x | SuckItPm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,10 +17,11 @@ find /opt/pmwiki/wiki.d ${filter} \ | |||
17 | do | 17 | do |
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 |