Skip to content

Commit

Permalink
Add sanity checking and doc to do_format_code.sh
Browse files Browse the repository at this point in the history
This should lower the hurdle to make the CI happy.
  • Loading branch information
cmorty committed Oct 19, 2022
1 parent 7edb711 commit 276edec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions releng/scripts/do_format_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 276edec

Please sign in to comment.