diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2011-09-05 13:28:20 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-12-17 16:11:16 +0100 |
commit | feaf4df70588cf1ee30b4879a1048cc143135a67 (patch) | |
tree | c637856f24862743117c74cdd3215f0341e221b2 /build-aux | |
parent | efd3a9be2cb5340e953dad2bc324bc14f6903b1f (diff) | |
download | gnulib-feaf4df70588cf1ee30b4879a1048cc143135a67.tar.gz |
build: let bootstrap resort to wget for downloading .po files
* build-aux/bootstrap (download_po_files): Fallback to wget when
downloading the .po files via rsync failed. This is necessary to
bootstrap behind a strict firewall.
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/bootstrap | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap index 3c39f4a524..61e11852d0 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -105,6 +105,11 @@ po_download_command_format=\ "rsync --delete --exclude '*.s1' -Lrtvz \ 'translationproject.org::tp/latest/%s/' '%s'" +# Fallback for downloading .po files (if rsync fails). +po_download_command_format2=\ +"wget --mirror -nd -q -np -A.po -P '%s' \ + http://translationproject.org/latest/%s/" + extract_package_name=' /^AC_INIT(/{ /.*,.*,.*, */{ @@ -603,6 +608,9 @@ download_po_files() { domain=$2 echo "$me: getting translations into $subdir for $domain..." cmd=`printf "$po_download_command_format" "$domain" "$subdir"` + eval "$cmd" && return + # Fallback to HTTP. + cmd=`printf "$po_download_command_format2" "$subdir" "$domain"` eval "$cmd" } |