From f605188f78cb1a58ec0d3f8f17dcc30d8ac2ab20 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 17 Jan 2019 14:13:54 -0500 Subject: [PATCH] Asciidoctor: Drop xml file after docbook Drop the giant xml file produced by asciidoctor after docbook is all done. We don't keep the xml file we make with asciidoc so we shouldn't keep the xml file from asciidoctor either. It is useful for debugging, but we can always get it if we need it. --- lib/ES/Util.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ES/Util.pm b/lib/ES/Util.pm index c5a0c2a6fd984..d57e8c303b1f5 100644 --- a/lib/ES/Util.pm +++ b/lib/ES/Util.pm @@ -109,7 +109,7 @@ sub build_chunked { "$dest/index.xml" ); # TODO copy_resources? - # TODO clean the xml files + unlink "$dest/index.xml"; 1; } or do { $output = $@; $died = 1; }; } @@ -232,7 +232,7 @@ sub build_single { "$dest/index.xml" ); # TODO copy_resources? - # TODO clean the xml file + unlink "$dest/index.xml"; 1; } or do { $output = $@; $died = 1; }; }