diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-06-06 11:53:41 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-06-06 11:56:00 +0900 |
commit | eba03bd00329efd54d4d44825bed06fca8167f81 (patch) | |
tree | d1afe4802a4941a130119aa5e45ea28a539b3700 /autogen.sh | |
parent | 583bd83ee7fef6cd3d75af17d2c66f6d572f1f7b (diff) | |
download | gettext-eba03bd00329efd54d4d44825bed06fca8167f81.tar.gz |
autogen.sh: Use xz-compressed archive tarball
* autogen.sh: Fetch archive.dir-latest.tar.xz instead of .tar.gz.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh index 2e71cca45..e51d6ad8f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -22,6 +22,7 @@ # - Automake # - Wget # - Git +# - XZ Utils # # By default, it fetches Gnulib as a git submodule. If you already # have a local copy of Gnulib, you can avoid extra network traffic by @@ -394,15 +395,15 @@ fi # Fetch gettext-tools/misc/archive.dir.tar. if ! test -f gettext-tools/misc/archive.dir.tar; then - if ! test -f gettext-tools/misc/archive.dir.tar.gz; then + if ! test -f gettext-tools/misc/archive.dir.tar.xz; then echo "$0: getting gettext-tools/misc/archive.dir.tar..." - wget -q --timeout=5 -O gettext-tools/misc/archive.dir.tar.gz-t "ftp://alpha.gnu.org/gnu/gettext/archive.dir-latest.tar.gz" \ - && mv gettext-tools/misc/archive.dir.tar.gz-t gettext-tools/misc/archive.dir.tar.gz + wget -q --timeout=5 -O gettext-tools/misc/archive.dir.tar.xz-t "ftp://alpha.gnu.org/gnu/gettext/archive.dir-latest.tar.xz" \ + && mv gettext-tools/misc/archive.dir.tar.xz-t gettext-tools/misc/archive.dir.tar.xz retval=$? - rm -f gettext-tools/misc/archive.dir.tar.gz-t + rm -f gettext-tools/misc/archive.dir.tar.xz-t test $retval -eq 0 || exit $retval fi - gzip -d -c < gettext-tools/misc/archive.dir.tar.gz > gettext-tools/misc/archive.dir.tar-t \ + xz -d -c < gettext-tools/misc/archive.dir.tar.xz > gettext-tools/misc/archive.dir.tar-t \ && mv gettext-tools/misc/archive.dir.tar-t gettext-tools/misc/archive.dir.tar retval=$? rm -f gettext-tools/misc/archive.dir.tar-t |