diff options
Diffstat (limited to 'SuckItFos')
-rwxr-xr-x | SuckItFos | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -18,7 +18,9 @@ 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- | rev | cut -b 5- | rev` | 19 | file=`echo "${line}" | cut -d '/' -f 2- | rev | cut -b 5- | rev` |
20 | mkdir -p Foswiki/$base | 20 | mkdir -p Foswiki/$base |
21 | mkdir -p Foswiki/${base}/`dirname ${file}` | ||
21 | mkdir -p combined/$base | 22 | mkdir -p combined/$base |
23 | mkdir -p combined/${base}/`dirname ${file} | ||
22 | echo "Converting ${URL}/${base}/${file} -> Foswiki/${base}/${file}.md" | 24 | echo "Converting ${URL}/${base}/${file} -> Foswiki/${base}/${file}.md" |
23 | # pandoc -f html -t markdown --self-contained ${URL}/${base}/${file} >Foswiki/${base}/${file}.md | 25 | # pandoc -f html -t markdown --self-contained ${URL}/${base}/${file} >Foswiki/${base}/${file}.md |
24 | # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM | 26 | # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM |