FreeBSD 10 and above no longer have /usr/bin/cvs - allow it to be found in the path (e.g., from a devel/cvs ports install)

This commit is contained in:
Nick Withers 2014-01-07 10:04:49 +11:00 committed by Chris Johns
parent 44e82d8896
commit b7a13abd4b

View File

@ -1,6 +1,6 @@
#
# RTEMS Tools Project (http://www.rtems.org/)
# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
# Copyright 2010-2014 Chris Johns (chrisj@rtems.org)
# All rights reserved.
#
# This file is part of the RTEMS Tools package in 'rtems-tools'.
@ -73,6 +73,12 @@ def load():
defines['_build_alias'] = defines['_host_alias']
defines['_build_arch'] = defines['_host_arch']
# FreeBSD 10 and above no longer have /usr/bin/cvs, but it can (e.g.) be installed to /usr/local/bin/cvs through the devel/cvs port
if int(float(version)) >= 10:
cvs = 'cvs'
if check.check_exe(cvs, cvs):
defines['__cvs'] = cvs
for gv in ['47', '48', '49']:
gcc = '%s-portbld-freebsd%s-gcc%s' % (cpu, version, gv)
if check.check_exe(gcc, gcc):