summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorzbao <fishbaozi@gmail.com>2012-08-10 15:44:02 +0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-08-10 20:19:46 +0200
commitf2c3254870550c8ab2c164ca6a54523af1a83ff6 (patch)
treed4c029dc1803666e08907b1caa69e2457f8fe454 /Makefile.inc
parent9de0fee935e4045c540a7e2d6b35b4552bd8c411 (diff)
downloadcoreboot-staging-f2c3254870550c8ab2c164ca6a54523af1a83ff6.zip
coreboot-staging-f2c3254870550c8ab2c164ca6a54523af1a83ff6.tar.gz
gitconfig: upate commit-msg if newer one is available
Change-Id: Iea010bf6f456a5ce5d8906821c95a7de4b577085 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: zbao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1429 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 083d423..4c2bb4c 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -291,7 +291,13 @@ lint lint-stable:
rm -f $$LINTLOG
gitconfig:
- for hook in commit-msg pre-commit; do if ! [ -x .git/hooks/$$hook ]; then cp util/gitconfig/$$hook .git/hooks/$$hook; chmod +x .git/hooks/$$hook; fi; done
+ 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; \
+ chmod +x .git/hooks/$$hook; \
+ fi; \
+ done
(git config --global user.name >/dev/null && git config --global user.email >/dev/null) || (printf 'Please configure your name and email in git:\n\n git config --global user.name "Your Name Comes Here"\n git config --global user.email your.email@example.com\n'; exit 1)
crossgcc: clean-for-update
OpenPOWER on IntegriCloud