From 92c84158677f30edb8872754d92832a35420952d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 14 Aug 2013 16:56:14 +0200 Subject: Use python-ansi2html instead of cpan module Way, way, way, way faster. Did I mention it is faster? Also we now have line numbers because we can. Signed-off-by: Florian Pritz --- install.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'install.php') diff --git a/install.php b/install.php index 8b07731e0..6c49658fd 100644 --- a/install.php +++ b/install.php @@ -31,7 +31,6 @@ $buf == "works" || $errors .= "passthru() failed\n"; // test perl deps $perldeps = array( - "HTML::FromANSI", "Text::Markdown" ); foreach ($perldeps as $dep) { @@ -58,6 +57,14 @@ if ($buf != "0") { $errors .= " - Error when testing pygmentize: Return code was \"$buf\".\n"; } +// test ansi2html +ob_start(); +passthru("ansi2html -h 2>&1", $buf); +ob_end_clean(); +if ($buf != "0") { + $errors .= " - Error when testing ansi2html: Return code was \"$buf\".\n"; +} + // test qrencode ob_start(); passthru("qrencode -V 2>&1", $buf); -- cgit v1.2.3-24-g4f1b