summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-10-11 21:24:45 +0200
committerAkim Demaille <akim.demaille@gmail.com>2018-10-14 15:15:29 +0200
commitdc73dc4fb217e1b8ecd62ea36486003a9f2979d4 (patch)
tree0c75ae29a858c918481ec5444607065cd8865b34 /bootstrap
parent677a91aef25ed4f683362208ad57d6dea18624fe (diff)
downloadbison-dc73dc4fb217e1b8ecd62ea36486003a9f2979d4.tar.gz
gnulib: update timevar
See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00005.html.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap22
1 files changed, 6 insertions, 16 deletions
diff --git a/bootstrap b/bootstrap
index fa9d7c94..5264d9f1 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
# Print a version string.
-scriptversion=2018-07-25.07; # UTC
+scriptversion=2018-10-13.05; # UTC
# Bootstrap this package from checked-out sources.
@@ -162,18 +162,11 @@ bootstrap_post_import_hook() { :; }
# Override it via your own definition in bootstrap.conf.
bootstrap_epilogue() { :; }
-# The command to download all .po files for a specified domain into
-# a specified directory. Fill in the first %s is the domain name, and
-# the second with the destination directory. Use rsync's -L and -r
-# options because the latest/%s directory and the .po files within are
-# all symlinks.
+# The command to download all .po files for a specified domain into a
+# specified directory. Fill in the first %s with the destination
+# directory and the second with the domain name.
po_download_command_format=\
-"rsync --include '*.po' --exclude '*' -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' \
+"wget --mirror --level=1 -nd -q -A.po -P '%s' \
https://translationproject.org/latest/%s/"
# Prefer a non-empty tarname (4th argument of AC_INIT if given), else
@@ -741,10 +734,7 @@ download_po_files() {
subdir=$1
domain=$2
echo "$me: getting translations into $subdir for $domain..."
- cmd=$(printf "$po_download_command_format" "$domain" "$subdir")
- eval "$cmd" && return
- # Fallback to HTTPS.
- cmd=$(printf "$po_download_command_format2" "$subdir" "$domain")
+ cmd=$(printf "$po_download_command_format" "$subdir" "$domain")
eval "$cmd"
}