aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-03-19 16:47:48 +0100
committerThomas Schwinge <tschwinge@baylibre.com>2024-03-19 16:47:48 +0100
commit6eba95e99238ccf40ea1a6720d6ad291bd31fe83 (patch)
tree209362953e05804215f877b42f6ac351a0f69e20 /contrib
parent136c428abb4be874a3302e80a513301f298d3c70 (diff)
parent2c92551405bc8616f456e5cbc696ab0292c7ff00 (diff)
downloadgcc-6eba95e99238ccf40ea1a6720d6ad291bd31fe83.zip
gcc-6eba95e99238ccf40ea1a6720d6ad291bd31fe83.tar.gz
gcc-6eba95e99238ccf40ea1a6720d6ad291bd31fe83.tar.bz2
Merge commit 'a857ec6aada08d8c334c389c7b682198d749b6c9^' into HEAD
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog7
-rwxr-xr-xcontrib/download_prerequisites8
2 files changed, 14 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 5151ade..04b99f1 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,10 @@
+2023-12-13 Arsen Arsenović <arsen@aarsen.me>
+
+ * download_prerequisites
+ <arg parse>: Parse --only-gettext.
+ (echo_archives): Check only_gettext and stop early if true.
+ (helptext): Document --only-gettext.
+
2023-12-02 Richard Sandiford <richard.sandiford@arm.com>
* config-list.mk (OPT_IN_LANGUAGES): New variable.
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}"
;;