2 # Creates an ASCII version of the wiki.
14 fname
=$
(echo "$f" |
sed "s/\.md//g")
17 cat $f | cmark-gfm
-e table
> __tmp.html
&& links
-html-numbered-links 1 -dump __tmp.html |
sed "s/file:\/\/.*less_retarded_wiki\///g" >> $f2
22 echo "making single TXT"
24 echo "LESS RETARDED WIKI" > lrs_wiki.txt
25 echo "by drummyfish, released under CC0 1.0, public domain" >> lrs_wiki.txt
27 for f
in txt
/*.txt
; do
30 fname
=$
(echo "$f" |
sed "s/\.txt//g" |
sed "s/txt\///g")
32 echo "--------------------------------------------------------------------------------" >> lrs_wiki.txt
33 echo "$fname:" >> lrs_wiki.txt
35 cat $f >> lrs_wiki.txt