From 4d2ed9dacfdaf5430b158970b9b051364adea2e4 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Tue, 14 Jan 2025 21:19:22 -0500 Subject: [PATCH] Remove generation of adoc files in code cleanliness (#1005) This was supposed to be a check to ensure adoc generation was working, but it interferes with the overall check code cleanliness as it leads to jgit dirty errors. The generation of the docs is done as part of the build too, so it is redundant to do them here. --- releng/scripts/do_generate_asciidoc.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/releng/scripts/do_generate_asciidoc.sh b/releng/scripts/do_generate_asciidoc.sh index 64518d60fb3..a82638a704a 100755 --- a/releng/scripts/do_generate_asciidoc.sh +++ b/releng/scripts/do_generate_asciidoc.sh @@ -18,8 +18,6 @@ SCRIPT=$( basename "${BASH_SOURCE[0]}" ) # Make sure that asciidocs are up to date ## for p in doc/org.eclipse.cdt.doc.user; do - echo "Rebuilding $p asciidocs to make sure they match source" - echo "Ensure adoc files start with expected contents" ref_header=$p/adoc-headers.txt git ls-files -- $p/**/*.adoc | while read i ; do @@ -29,11 +27,4 @@ for p in doc/org.eclipse.cdt.doc.user; do tail --lines=+${end_line:=0} $i >> $tmpfile mv -f $tmpfile $i done - - echo "Generate html from adoc files" - logfile=asciidoc-${p//\//-}.log - if ! ${MVN:-mvn} -B -V generate-resources -DuseSimrelRepo -f $p >${logfile} 2>&1; then - echo "Rebuilding of $p asciidocs failed. The log (${logfile}) is part of the artifacts of the build" - exit 1 - fi done