From 5395017f679d83e45e9610f27f36a8a3fdc08923 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 6 May 2020 13:38:02 +0200 Subject: Makefile: print what files are not formatted Move this part from .travis.yml to Makefile. It's useful to see it always and we generally don't have lots of logic in the travis file. Also move list of changed files to the bottom (that's what one generally sees at console and at the end of the log). --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9f2033bdd..eaa1651b3 100644 --- a/Makefile +++ b/Makefile @@ -382,4 +382,8 @@ check_links: # Check that the diff is empty. This is meant to be executed after generating # and formatting the code to make sure that everything is committed. check_diff: - DIFF="$(shell git diff --name-only)"; test -z "$$DIFF" + @if [ "$(shell git diff --name-only)" != "" ]; then \ + git diff; \ + echo -e "\n\nSome files are not formatted/regenerated (include them into commit):"; \ + git diff --name-only; \ + fi -- cgit mrf-deployment