https://github.com/BrianGladman/mpfr
Raw File
Tip revision: 75d60e78db0a7a9fc2804413f2732f457b799a22 authored by Brian Gladman on 15 December 2023, 16:21:48 UTC
Merge branch 'master' of gitlab.inria.fr:mpfr/mpfr
Tip revision: 75d60e7
autogen.sh
#!/bin/sh

# "autoreconf -f" will clobber some of our files with generic ones if we
# don't move them out of the way (see $files below).

# EXIT and signals that correspond to SIGHUP, SIGINT, SIGQUIT and SIGTERM.
signals="0 1 2 3 15"

# We do not want the generic INSTALL file (which is added by -f due to
# "AUTOMAKE_OPTIONS = gnu" in Makefile.am). And doc/texinfo.tex is in
# the repository because the one provided by the system may be obsolete
# or have regressions; we need to control it in order to make sure that
# the MPFR manual generated in various formats is OK.
files="INSTALL doc/texinfo.tex"

cleanup()
{
  trap '' $signals
  for i in $files
  do
    if [ -f "$i.$$.tmp" ]; then
      echo "$0: restoring the $i file" >&2
      mv -f "$i.$$.tmp" "$i"
    fi
  done
}

for i in $files; do rm -f -- "$i.$$.tmp"; done
trap cleanup $signals
for i in $files; do mv -f -- "$i" "$i.$$.tmp"; done

autoreconf -v -f -i --warnings=all,error
status=$?

rm -rf autom4te.cache

exit $status
back to top