Fix 'nvidia with ncurses segfaults' (sf.net #3006233)
[monky] / doc / docgen.sh
index 1247001..e3a73f1 100644 (file)
@@ -1,13 +1,11 @@
 #!/bin/sh
-# $Id$
 
 xsltproc http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl docs.xml > docs.html
-if [ -x docbook2man ]
-then
-       docbook2man docs.xml
-else
-       docbook2x-man docs.xml
-fi
-gzip -f conky.1
-man ./conky.1.gz | col -b > README
+
+db2x_xsltproc -s man docs.xml -o docs.mxml
+db2x_manxml docs.mxml
+{ echo ".TH CONKY 1 \"August 2005\" \"conky compiled August 2005\" \"User Commands\""; sed 1d < conky.1; } > conky.2
+mv conky.2 conky.1
+#gzip --best --stdout conky.1 > conky.1.gz
+man ./conky.1 | col -b > README
 mv README ../