unset PAGER before generating README
authorPavel Labath <pavelo@centrum.sk>
Sun, 22 Nov 2009 22:20:09 +0000 (23:20 +0100)
committerPavel Labath <pavelo@centrum.sk>
Sun, 22 Nov 2009 22:21:49 +0000 (23:21 +0100)
apparently, some people like to set PAGER=vim and vim doesn't like when we redirect man output to
a file

doc/Makefile.am

index 8983bbf..1a3d796 100644 (file)
@@ -10,7 +10,7 @@ conky.1: command_options.xml config_settings.xml docs.xml variables.xml lua.xml
        ${db2x_xsltproc_cmd} -s man ${srcdir}/docs.xml -o docs.mxml
        ${db2x_manxml_cmd} docs.mxml
        ${xsltproc_cmd} http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ${srcdir}/docs.xml > docs.html
-       man ./conky.1 > README
+       (unset PAGER; man ./conky.1 > README)
        sed -i "s/[[:cntrl:]]\[[0-9]*m//g" README
        mv README ${top_srcdir}
        xsltproc ${srcdir}/variables.xsl ${srcdir}/variables.xml > variables.html