#!/bin/sh # Check possible problems in the MPFR source. grep '^# *include *' *.c grep -E 'mpfr_(underflow|overflow|nanflag|inexflag|erangeflag)_p' *.{c,h} | \ grep -v '^exceptions.c:' | grep -v '^mpfr-impl.h:#define mpfr_.*_p()' | \ grep -v '^mpfr.h:__MPFR_DECLSPEC ' grep GMP_RND {,tests/}*.{c,h} | grep -v '#define GMP_RND' fdlv1="`sed -n '/Version / {s/.*Version //; s/,.*//; p; q}' fdl.texi`" fdlv2="`sed -n '/GNU Free Documentation License/ \ {s/.*Version //; s/ or.*//; p; q}' mpfr.texi`" [ "x$fdlv1" = "x$fdlv2" ] || cat <