mirror of
https://github.com/eclipse-cdt/cdt
synced 2024-10-28 12:09:40 +01:00
Add sanity checking and doc to do_format_code.sh
This should lower the hurdle to make the CI happy.
This commit is contained in:
parent
3b3f29c93a
commit
a60fc2b1b4
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,15 @@ set -e
|
|||
# Format code
|
||||
##
|
||||
: ${ECLIPSE:=~/buildtools/eclipse-SDK-4.23/eclipse}
|
||||
|
||||
if test ! -e "$ECLIPSE" ; then
|
||||
echo "The Eclipse binary was not found at \"$ECLIPSE\"!"
|
||||
echo "You can download it to and pass it via environment variable:"
|
||||
echo " curl -L http://download.eclipse.org/eclipse/downloads/drops4/R-4.23-202203080310/eclipse-SDK-4.23-linux-gtk-x86_64.tar.gz | tar xzC /tmp"
|
||||
echo " ECLIPSE=/tmp/eclipse/eclipse ./releng/scripts/check_code_cleanliness.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -e check_code_cleanliness_workspace; then
|
||||
echo check_code_cleanliness_workspace needs to be deleted
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue