X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=bootstrap;h=6c825c728b5c237709272a05c20bf0e506ab7dba;hb=069c0d99ae1838fc255fd2b701343db9d52cebfe;hp=dadb03045e1734dad6b00c519f1a7e9d2fd1dff0;hpb=3d09d579c1bf128cabe79d18a97c879163ceb85a;p=chaz%2Ftar diff --git a/bootstrap b/bootstrap index dadb030..6c825c7 100755 --- a/bootstrap +++ b/bootstrap @@ -21,21 +21,51 @@ # Written by Paul Eggert. +# URL of our text domain page in Translation Project +TP_URL="http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/" + +usage() { + cat <&2 "$0: $option: unknown option" exit 1;; @@ -49,6 +79,12 @@ build_cvs_prefix() { if [ "${2}" != - ]; then CVS_PREFIX=${CVS_PREFIX}${2}@ fi + if [ "$1" = "ext" ]; then + if [ -z "${CVS_RSH}" ]; then + CVS_RSH=ssh + export CVS_RSH + fi + fi } # Get gnulib files. @@ -62,13 +98,11 @@ case ${GNULIB_SRCDIR--} in trap 'rm -fr gnulib; exit 1' 0 case "${CVS_AUTH--}" in - -) : ${CVS_RSH:?} - CVS_PREFIX="";; + -) build_cvs_prefix ext anoncvs;; pserver) build_cvs_prefix $CVS_AUTH ${CVS_USER:-anoncvs};; gserver|server) build_cvs_prefix $CVS_AUTH ${CVS_USER--};; - ext) : ${CVS_RSH:?} - build_cvs_prefix $CVS_AUTH ${CVS_USER--};; + ext) build_cvs_prefix $CVS_AUTH ${CVS_USER--};; *) echo "$0: Unknown CVS access method" >&2 exit 1;; esac @@ -112,6 +146,7 @@ safe-read save-cwd savedir stdbool +stpcpy strtol strtoul unlocked-io @@ -145,6 +180,14 @@ for gnulib_file in $gnulib_files; do dest=$gnulib_file case $gnulib_file in + m4/codeset.m4) continue;; + m4/glibc21.m4) continue;; + m4/intdiv0.m4) continue;; + m4/inttypes_h.m4) continue;; + m4/inttypes.m4) continue;; + m4/inttypes-pri.m4) continue;; + m4/isc-posix.m4) continue;; + m4/lcmessage.m4) continue;; m4/onceonly_2_57.m4) dest=m4/onceonly.m4;; esac @@ -156,19 +199,19 @@ done # Get translations. -echo "$0: getting translations into po..." -(cd po && - rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && - wget -nv -nd -r -l 1 -A .po -C off \ - http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/ && - ls *.po | sed 's/\.po$//' >LINGUAS -) || exit - +if test "$DOWNLOAD_PO" = "yes"; then + echo "$0: getting translations into po..." + (cd po && + rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && + wget -nv -nd -r -l 1 -A .po -C off $TP_URL && + ls *.po | sed 's/\.po$//' >LINGUAS + ) || exit +fi # Reconfigure, getting other files. echo "$0: autoreconf --verbose --install --force ..." -autoreconf --verbose --install --force || exit +autoreconf --verbose --install --force echo "$0: done. Now you can run './configure'."