add runpandoc.sh and prepareforpandoc.moon

This commit is contained in:
Christine Dodrill 2015-07-27 21:13:39 -07:00
parent 823421cdb6
commit 7daae052f6
2 changed files with 16 additions and 0 deletions

View File

@ -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!

8
scripts/runpandoc.sh Normal file
View File

@ -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