add runpandoc.sh and prepareforpandoc.moon
This commit is contained in:
parent
823421cdb6
commit
7daae052f6
|
@ -0,0 +1,8 @@
|
|||
sqlite3 = require "lsqlite3"
|
||||
|
||||
db = assert sqlite3.open "../db/posts.db"
|
||||
|
||||
for post in db\nrows "SELECT * FROM Posts"
|
||||
with fout = io.open "../raw/posts/#{post.id}.textile", "w"
|
||||
fout\write post.body
|
||||
fout\close!
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd ../raw/posts
|
||||
|
||||
for file in *.textile
|
||||
do
|
||||
pandoc -r textile -w markdown_github -o "$file".md $file
|
||||
done
|
Loading…
Reference in New Issue