Use curl instead of wget in ci
It's more portable
MODIFY
ci/install-bionic.sh
ci/install-bionic.sh
@@ -132,8 +132,7 @@ sudo apt -y install \
libvtk7-dev \
libwebp-dev \
pkg-config \
- qtbase5-dev \
- wget
+ qtbase5-dev
# workaround to make clang_sys crate detect installed libclang
sudo ln -s libclang.so.1 /usr/lib/llvm-6.0/lib/libclang.so
@@ -144,8 +143,8 @@ else
base_dir="$HOME/build/opencv/"
mkdir -p "$base_dir"
- wget -q -O- "https://github.com/opencv/opencv/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
- wget -q -O- "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
+ curl -L "https://github.com/opencv/opencv/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
+ curl -L "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
build_dir="$base_dir/opencv-$OPENCV_VERSION-build/"
mkdir -p "$build_dir"

MODIFY
ci/install-macos-framework.sh
ci/install-macos-framework.sh
@@ -5,8 +5,8 @@ set -vex
base_dir="$HOME/build/opencv/"
mkdir -p "$base_dir"
-wget -q -O- "https://github.com/opencv/opencv/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
-wget -q -O- "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
+curl -L "https://github.com/opencv/opencv/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
+curl -L "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xzC "$base_dir"
build_dir="$base_dir/opencv-$OPENCV_VERSION-build/"
mkdir -p "$build_dir"

MODIFY
ci/xenial-install-opencv.sh
ci/xenial-install-opencv.sh
@@ -99,11 +99,11 @@ BUILD_FLAGS="
mkdir -p ~/build/opencv
-wget -q -O- "https://github.com/opencv/opencv/archive/$OPENCV_VERSION.tar.gz" | tar -xzC ~/build/opencv
+curl -L "https://github.com/opencv/opencv/archive/$OPENCV_VERSION.tar.gz" | tar -xzC ~/build/opencv
if [[ "$OPENCV_VERSION" == "3.2.0" ]]; then
- wget -O- https://patch-diff.githubusercontent.com/raw/opencv/opencv/pull/9228.patch | patch -p1 -d ~/"build/opencv/opencv-$OPENCV_VERSION"
+ curl -L https://patch-diff.githubusercontent.com/raw/opencv/opencv/pull/9228.patch | patch -p1 -d ~/"build/opencv/opencv-$OPENCV_VERSION"
fi
-wget -q -O- "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xzC ~/build/opencv
+curl -L "https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.tar.gz" | tar -xzC ~/build/opencv
mkdir -p ~/"build/opencv/opencv-$OPENCV_VERSION-build"
pushd ~/"build/opencv/opencv-$OPENCV_VERSION-build" > /dev/null

Use curl instead of wget in ci

It's more portable