diff options
author | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2012-04-06 12:05:59 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2012-04-06 12:05:59 +0000 |
commit | ac41ff5540708f2572c0b9ed9809c3f016a57df3 (patch) | |
tree | 58c23591607bedd50b1a215baa3b4cf3af6116f9 /include/prereq-build.mk | |
parent | 7c676e7e9116a80e628f47efcfd783d8e6f210ea (diff) | |
download | upstream-ac41ff5540708f2572c0b9ed9809c3f016a57df3.tar.gz upstream-ac41ff5540708f2572c0b9ed9809c3f016a57df3.tar.bz2 upstream-ac41ff5540708f2572c0b9ed9809c3f016a57df3.zip |
[include] Add git version check to prerequisite check (#11229)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31214 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/prereq-build.mk')
-rw-r--r-- | include/prereq-build.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/prereq-build.mk b/include/prereq-build.mk index c80e004c0c..2391e098c6 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -121,8 +121,12 @@ $(eval $(call RequireCommand,wget, \ Please install wget. \ )) -$(eval $(call RequireCommand,git, \ - Please install git (git-core). \ +define Require/git + git --version | awk '($$$$1 == "git") && ($$$$2 == "version") && ($$$$3 >= "1.6.5") { print "ok" }' | grep ok > /dev/null +endef + +$(eval $(call Require,git, \ + Please install git (git-core) v1.6.5 or later. \ )) define Require/gnutar |