git.iko.soy/typeable/pandoc
on master help sign in
Added 'make changes' target.

This copies to osx clipboard a github-markdown version of the changes from the latest release in the changelog.

commit07e1234c3bbedea38793891215006c0e03d6582c authorJohn MacFarlane <jgm@berkeley.edu> dateSun 15 Nov 2015, 08:17 (11 years ago) parent9ebd601
2 files changed+13−1
Makefile+4−1 extract-changes.hs+9
Makefile+4−1
@@ -23,6 +23,9 @@ test:
2323bench:
2424 cabal bench
2525
26+changes:
27+ pandoc --filter extract-changes.hs changelog -t markdown_github | pbcopy
28+
2629install: full
2730 cabal copy
2831 cabal register
@@ -58,4 +61,4 @@ download_stats:
5861clean:
5962 cabal clean
6063
61−.PHONY: deps quick full install clean test bench osxpkg dist prof download_stats
64+.PHONY: deps quick full install clean test bench changes osxpkg dist prof download_stats
extract-changes.hsnew file+9
@@ -0,0 +1,9 @@
1+-- Extract changes from latest version in changelog.
2+import Text.Pandoc.JSON
3+
4+main = toJSONFilter extractFirst
5+
6+extractFirst :: Pandoc -> Pandoc
7+extractFirst (Pandoc meta (Para{} : BulletList bs : _)) =
8+ Pandoc meta [BulletList bs]
9+extractFirst x = x