Commit 501cd2fa authored by Clint Adams's avatar Clint Adams

xmonad: patch to build with pandoc 2.x.

parent b098f32c
xmonad (0.13-13) unstable; urgency=medium
* Patch to build with pandoc 2.x.
-- Clint Adams <clint@debian.org> Wed, 25 Apr 2018 07:47:51 -0400
xmonad (0.13-12) unstable; urgency=medium
* Untested patch to build with pandoc 2.x.
......
......@@ -19,7 +19,7 @@
releaseDate = "31 December 2012"
@@ -68,31 +71,32 @@
@@ -68,31 +71,34 @@
keybindings <- (intercalate "\n\n" . map markdownDefn . allBindings)
`liftM` readFile "./src/XMonad/Config.hs"
......@@ -55,13 +55,15 @@
+ unwords
+ $ [".TH xmonad 1","\""++releaseDate++"\"",releaseName,"\"xmonad manual\""]
+
+ markdownSource <- readFile "./man/xmonad.1.markdown"
+
+ runIOorExplode $ do
+ parsed <- readMarkdown def
+ . T.pack
+ . unlines
+ . replace "___KEYBINDINGS___" keybindings
+ . lines
+ <$> liftIO (readFile "./man/xmonad.1.markdown")
+ $ markdownSource
+
+ manTemplate <- getDefaultTemplate "man"
+ manBody <- writeMan def { writerTemplate = Just manTemplate } parsed
......
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