[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build: let bootstrap resort to wget for downloading .po files
From: |
Jim Meyering |
Subject: |
[PATCH] build: let bootstrap resort to wget for downloading .po files |
Date: |
Sat, 17 Dec 2011 16:12:07 +0100 |
FYI, we've been using this in coreutils for some time, so...
>From feaf4df70588cf1ee30b4879a1048cc143135a67 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <address@hidden>
Date: Mon, 5 Sep 2011 13:28:20 +0200
Subject: [PATCH] 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.
---
ChangeLog | 7 +++++++
build-aux/bootstrap | 8 ++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 361362b..be5b789 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-12-17 Bernhard Voelker <address@hidden>
+
+ build: let bootstrap resort to wget when downloading .po files
+ * build-aux/bootstrap (download_po_files): Fallback to wget when
+ downloading the .po files via rsync fails. This is necessary to
+ bootstrap from behind a strict firewall.
+
2011-12-15 Paul Eggert <address@hidden>
stdint: don't assume C++11 when compiling with g++
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index 3c39f4a..61e1185 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"
}
--
1.7.8.250.g900a1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] build: let bootstrap resort to wget for downloading .po files,
Jim Meyering <=