diff options
author | Arsen Arsenović <arsen@aarsen.me> | 2023-12-02 16:37:17 +0100 |
---|---|---|
committer | Arsen Arsenović <arsen@gcc.gnu.org> | 2023-12-13 13:14:18 +0100 |
commit | eb6c2bcb673c1de622395f0b4c30b65b776ad55d (patch) | |
tree | afee1e8f91e2edd8454f3a29215e0437de400782 | |
parent | ef21ae5c45f3b79a36fadc1cb5723c095e2965ad (diff) | |
download | gcc-eb6c2bcb673c1de622395f0b4c30b65b776ad55d.zip gcc-eb6c2bcb673c1de622395f0b4c30b65b776ad55d.tar.gz gcc-eb6c2bcb673c1de622395f0b4c30b65b776ad55d.tar.bz2 |
download_prerequisites: add --only-gettext
contrib/ChangeLog:
* download_prerequisites
<arg parse>: Parse --only-gettext.
(echo_archives): Check only_gettext and stop early if true.
(helptext): Document --only-gettext.
-rwxr-xr-x | contrib/download_prerequisites | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites index 9568091..30ff0cc 100755 --- a/contrib/download_prerequisites +++ b/contrib/download_prerequisites @@ -36,16 +36,18 @@ gettext='gettext-0.22.tar.gz' base_url='http://gcc.gnu.org/pub/gcc/infrastructure/' echo_archives() { + echo "${gettext}" + if "${only_gettext}"; then return; fi echo "${gmp}" echo "${mpfr}" echo "${mpc}" - echo "${gettext}" if [ ${graphite} -gt 0 ]; then echo "${isl}"; fi } graphite=1 verify=1 force=0 +only_gettext=false OS=$(uname) if type wget > /dev/null ; then @@ -74,6 +76,7 @@ The following options are available: --no-verify don't verify package integrity --sha512 use SHA512 checksum to verify package integrity (default) --md5 use MD5 checksum to verify package integrity + --only-gettext inhibit downloading any package but gettext --help show this text and exit --version show version information and exit " @@ -159,6 +162,9 @@ do chksum_extension='md5' verify=1 ;; + --only-gettext) + only_gettext=true + ;; -*) die "unknown option: ${arg}" ;; |