mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
print/texinfo: Check the version and build if too old
Packages like binutils need newer versions than available by default on MacOS.
This commit is contained in:
parent
5e4b3b9098
commit
25df680df7
@ -1,8 +1,16 @@
|
||||
#
|
||||
# GNU makeinfo has a version option, check for it.
|
||||
# If not found build it.
|
||||
# If not found or not recent build it.
|
||||
#
|
||||
%define makeinfo_version 7.0.3
|
||||
%define has_makeinfo %(makeinfo --version > /dev/null 2>&1; echo $?)
|
||||
%if %{has_makeinfo} == 0
|
||||
%define makeinfo_version_resident \
|
||||
%(makeinfo --version | grep -e "^makeinfo (GNU texinfo)" -e "^texi2any (GNU texinfo)" | rev | sed -r 's/ .*//' | rev)
|
||||
%if %{makeinfo_version_resident} < %{makeinfo_version}
|
||||
%define has_makeinfo 1
|
||||
%endif
|
||||
%endif
|
||||
%if %{has_makeinfo} != 0
|
||||
%include %{_configdir}/print/texinfo-7.0.3.cfg
|
||||
%endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user