ref: 4d30bbd20db4b65392025a4602ee11a140619cef
parent: dafeccd380113e60476156b40635acf1b1f21c25
author: Rudi Heitbaum <rudi@heitbaum.com>
date: Tue Feb 4 03:38:24 EST 2025
Using autogen.sh allow fallback to curl if wget is missing for build Signed-off-by: Jean-Marc Valin <jeanmarcv@google.com>
--- a/dnn/download_model.sh
+++ b/dnn/download_model.sh
@@ -5,7 +5,12 @@
if [ ! -f $model ]; then
echo "Downloading latest model"
- wget https://media.xiph.org/opus/models/$model
+ if command -v wget >/dev/null; then
+ wget -O $model https://media.xiph.org/opus/models/$model
+ else
+ # if wget is not available use curl
+ curl -o $model https://media.xiph.org/opus/models/$model
+ fi
fi
if command -v sha256sum
--
⑨