X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b50d2359d7608270561abd5c3cbf6e84834c2019..3e7a2cd95f9ca7ee02eca7ca91df5b4a85fea9ff:/bootstrap diff --git a/bootstrap b/bootstrap index ce5fc487..7d094737 100755 --- a/bootstrap +++ b/bootstrap @@ -51,11 +51,10 @@ done echo "$0: Bootstrapping CVS $package..." -build_cvs_prefix() { - CVS_PREFIX=:${1}: - if [ "${2}" != - ]; then - CVS_PREFIX=${CVS_PREFIX}${2}@ - fi +cleanup_gnulib() { + status=$? + rm -fr gnulib + exit $status } # Get gnulib files. @@ -65,12 +64,9 @@ case ${GNULIB_SRCDIR--} in if [ ! -d gnulib ]; then echo "$0: getting gnulib files..." - trap exit 1 2 13 15 - trap 'rm -fr gnulib; exit 1' 0 - - case ${CVS_AUTH-anoncvs} in - anoncvs) - CVS_PREFIX='anoncvs@';; + case ${CVS_AUTH-pserver} in + pserver) + CVS_PREFIX=':pserver:anonymous@';; ssh) CVS_PREFIX="$CVS_USER${CVS_USER+@}";; *) @@ -82,9 +78,12 @@ case ${GNULIB_SRCDIR--} in '') export CVS_RSH=ssh;; esac - cvs -z3 -q -d ${CVS_PREFIX}subversions.gnu.org:/cvsroot/gnulib co gnulib || exit + trap cleanup_gnulib 1 2 13 15 + + cvs -z3 -q -d ${CVS_PREFIX}cvs.savannah.gnu.org:/cvsroot/gnulib co gnulib || + cleanup_gnulib - trap - 0 + trap - 1 2 13 15 fi GNULIB_SRCDIR=gnulib esac @@ -112,6 +111,7 @@ strerror strtoul strverscmp unistd-safer +unlocked-io verify xalloc xalloc-die