Commit 9697da14 authored by Arnaud Legrand's avatar Arnaud Legrand

Export org metadata to markdown

parent c9a12601
%.md: %.org %.md: %.org
chmod a+w $@ chmod a+w $@
pandoc -f org -t markdown_github -o $@ $^ LANG=C ; pandoc -s -f org -t markdown_github -o $@ $^
mv $@ $@.bak
echo '---' > $@
grep -i -e "#+TITLE:" -e "#+AUTHOR:" $^ | sed 's/#+//' >> $@ # -e "#+DATE:" ## echo "DATE: `date '+%B %e, %Y'`" >> $@
git log $^ | grep Date | head -n 1 | sed 's/+.*//' >> $@
echo "---\\n" >> $@
cat $@.bak >> $@
rm $@.bak
chmod a-wx $@ chmod a-wx $@
# %.html: %.org # %.html: %.org
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment