From 7946924e237e059bb1b8ca311824042f69396e66 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 10 Jul 2021 16:00:40 -0400 Subject: add some shfmt config --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1d91b6c..6dea15b 100644 --- a/Makefile +++ b/Makefile @@ -119,7 +119,10 @@ versions : updates : $(GIT) submodule foreach -q 'if [ $$path == "vim/pack/filetype/start/perl" ]; then if [ $$(git rev-parse dev) != $$sha1 ]; then git lg dev...$$sha1; fi; else if [ $$(git rev-parse master) != $$sha1 ]; then git lg master...$$sha1; fi; fi' -.PHONY: submodules build install clean update versions updates +shfmt : + rg --files-without-match shfmt:skip $$(rg --files-with-matches '[#]!.*sh\b|[v]im:.*ft=.*sh\b') | grep -v "$$(echo $$(git submodule foreach -q 'echo $$sm_path') | sed 's/ /\\|/g')" | xargs shfmt -w -i 4 + +.PHONY: submodules build install clean update versions updates shfmt # installation targets -- cgit v1.2.3-54-g00ecf