Skip to content

Commit 73d1bce

Browse files
authored
Merge pull request #9258 from oech3/wgetcurl
Avoid mixing wget and curl
2 parents 28be09a + ea12980 commit 73d1bce

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

GNUmakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ test_toybox:
345345
toybox-src:
346346
if [ ! -e "$(TOYBOX_SRC)" ] ; then \
347347
mkdir -p "$(TOYBOX_ROOT)" ; \
348-
wget "https://github.com/landley/toybox/archive/refs/tags/$(TOYBOX_VER).tar.gz" -P "$(TOYBOX_ROOT)" ; \
348+
curl -Ls "https://github.com/landley/toybox/archive/refs/tags/$(TOYBOX_VER).tar.gz" -o "$(TOYBOX_ROOT)/$(TOYBOX_VER).tar.gz" ; \
349349
tar -C "$(TOYBOX_ROOT)" -xf "$(TOYBOX_ROOT)/$(TOYBOX_VER).tar.gz" ; \
350350
sed -i -e "s|TESTDIR=\".*\"|TESTDIR=\"$(BUILDDIR)\"|g" $(TOYBOX_SRC)/scripts/test.sh; \
351351
sed -i -e "s/ || exit 1//g" $(TOYBOX_SRC)/scripts/test.sh; \
@@ -354,8 +354,8 @@ toybox-src:
354354
busybox-src:
355355
if [ ! -e "$(BUSYBOX_SRC)" ] ; then \
356356
mkdir -p "$(BUSYBOX_ROOT)" ; \
357-
wget "https://busybox.net/downloads/busybox-$(BUSYBOX_VER).tar.bz2" -P "$(BUSYBOX_ROOT)" ; \
358-
tar -C "$(BUSYBOX_ROOT)" -xf "$(BUSYBOX_ROOT)/busybox-$(BUSYBOX_VER).tar.bz2" ; \
357+
curl -Ls "https://github.com/mirror/busybox/archive/refs/tags/$(subst .,_,$(BUSYBOX_VER)).tar.gz" -o "$(BUSYBOX_ROOT)/busybox-$(BUSYBOX_VER).tar.gz" ; \
358+
tar -C "$(BUSYBOX_ROOT)" -xf "$(BUSYBOX_ROOT)/busybox-$(BUSYBOX_VER).tar.gz" ; \
359359
fi ;
360360

361361
# This is a busybox-specific config file their test suite wants to parse.

src/uu/head/BENCHMARKING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ William Shakespeare*, which is in the public domain in the United States
2020
and most other parts of the world.
2121

2222
```shell
23-
wget -O shakespeare.txt https://www.gutenberg.org/files/100/100-0.txt
23+
curl -o shakespeare.txt https://www.gutenberg.org/files/100/100-0.txt
2424
```
2525

2626
This particular file has about 170,000 lines, each of which is no longer

src/uu/shuf/BENCHMARKING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ renaming the executable from `shuf` to `shuf.old`.
1414
Sample input can be generated using `/dev/random`:
1515

1616
```shell
17-
wget -O input.txt https://www.gutenberg.org/files/100/100-0.txt
17+
curl -o input.txt https://www.gutenberg.org/files/100/100-0.txt
1818
```
1919

2020
To avoid distortions from IO, it is recommended to store input data in tmpfs.

src/uu/wc/BENCHMARKING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To get a file with less artificial contents, download a book from
5656
Project Gutenberg and concatenate it a lot of times:
5757

5858
```shell
59-
wget https://www.gutenberg.org/files/2701/2701-0.txt -O moby.txt
59+
curl https://www.gutenberg.org/files/2701/2701-0.txt -o moby.txt
6060
cat moby.txt moby.txt moby.txt moby.txt > moby4.txt
6161
cat moby4.txt moby4.txt moby4.txt moby4.txt > moby16.txt
6262
cat moby16.txt moby16.txt moby16.txt moby16.txt > moby64.txt
@@ -65,7 +65,7 @@ cat moby16.txt moby16.txt moby16.txt moby16.txt > moby64.txt
6565
And get one with lots of unicode too:
6666

6767
```shell
68-
wget https://www.gutenberg.org/files/30613/30613-0.txt -O odyssey.txt
68+
curl https://www.gutenberg.org/files/30613/30613-0.txt -o odyssey.txt
6969
cat odyssey.txt odyssey.txt odyssey.txt odyssey.txt > odyssey4.txt
7070
cat odyssey4.txt odyssey4.txt odyssey4.txt odyssey4.txt > odyssey16.txt
7171
cat odyssey16.txt odyssey16.txt odyssey16.txt odyssey16.txt > odyssey64.txt

util/android-commands.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ init() {
329329
snapshot_name="${AVD_CACHE_KEY}"
330330

331331
# shellcheck disable=SC2015
332-
wget -nv "https://github.com/termux/termux-app/releases/download/${termux}/termux-app_${termux}+github-debug_${arch}.apk" &&
332+
curl -sLO "https://github.com/termux/termux-app/releases/download/${termux}/termux-app_${termux}+github-debug_${arch}.apk" &&
333333
snapshot "termux-app_${termux}+github-debug_${arch}.apk" &&
334334
hash_rustc &&
335335
exit_termux &&

0 commit comments

Comments
 (0)