1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-03-28 14:56:28 +01:00

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.
This commit is contained in:
Jonah Graham 2025-01-14 21:19:22 -05:00 committed by GitHub
parent 75ef178ffd
commit 4d2ed9dacf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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