scons: Automatically install the git style hook
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:35:33 +0000 (15:35 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 30 Mar 2016 14:35:33 +0000 (15:35 +0100)
commit588ecad91914a861d04dd83d2fea070b3ba4b24b
tree3bbbebaa3e234f5018a812077ab50adff0bb56ce
parent5f9c0f8a24784443355f9f6cb54946b96347ac4e
scons: Automatically install the git style hook

Add a check in the main SConscript that installs the git pre-commit
hook in util/ if git is used.

Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
[andreas.sandberg@arm.com: Cleanups suggested by Steve]
Reviewed-by: Steve Reinhardt <steve.reinhardt@amd.com>
--HG--
extra : rebase_source : 4b805cdd74bc5442a65abf8a62e3e341f352c04e
SConstruct