fix self-bootstrap check

This commit is contained in:
Jens Petersen 2011-03-28 16:45:18 +09:00
parent cd30bb3547
commit 78a6eab552

View File

@ -8,11 +8,11 @@
# configure # configure
%cabal_configure\ %cabal_configure\
%if %{undefined ghc_bootstrap}\ %if %{undefined ghc_bootstrap}\
if ! ghc --info | grep -q "(\"Booter version\",\"%{ghc_version}\")"; then\ if [ ! "$(ghc --info | grep \\"Booter\\ version\\",\\"%{ghc_version}\\")" ]; then\
echo "Aborting since this ghc build is not ABI self-bootstrapped.\ echo "Aborting since this ghc version build is not self-bootstrapped.\
The ghc package should be rebuilt against its current version first\ The ghc package should be rebuilt against its current version first\
to prevent avoid any potential future dependency breakage.\ to prevent dependency ABI breakage with a future ghc rebuild.\
(This can be overridden by defining ghc_bootstrap at your own risk.)"\ (This can be overridden at your own risk by defining ghc_bootstrap.)"\
exit 1\ exit 1\
fi\ fi\
%endif\ %endif\