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

xmonad: patch to build with pandoc 2.x.

parent b098f32c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
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.
+4 −2
Original line number Diff line number Diff line
@@ -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