gitconfig: Use the right make executable in git hooks
When installing git hooks through $(MAKE) gitconfig, make knows itself (and is a GNU make). So let it splice itself into hooks where necessary by replacing %MAKE%. Change-Id: Iaf778bfa3f17a8fe31312f871571ed89a9de5385 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/10018 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
7cb26b4a6e
commit
f394715277
|
@ -418,7 +418,7 @@ gitconfig:
|
|||
for hook in commit-msg pre-commit ; do \
|
||||
if [ util/gitconfig/$$hook -nt .git/hooks/$$hook -o \
|
||||
! -x .git/hooks/$$hook ]; then \
|
||||
cp util/gitconfig/$$hook .git/hooks/$$hook; \
|
||||
sed -e "s,%MAKE%,$(MAKE),g" util/gitconfig/$$hook > .git/hooks/$$hook; \
|
||||
chmod +x .git/hooks/$$hook; \
|
||||
fi; \
|
||||
done
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec make lint-stable
|
||||
exec %MAKE% lint-stable
|
||||
|
|
Loading…
Reference in New Issue