[Build-system] Migrate music/sounds from files.freeswitch.org to https://github.com/freeswitch/freeswitch-sounds/releases (#3062)

This commit is contained in:
Andrey Volk
2026-06-30 23:33:14 +03:00
committed by GitHub
parent b9c41705b7
commit 225a5e197e
22 changed files with 114 additions and 99 deletions
+12 -2
View File
@@ -15,10 +15,20 @@ if [ "x${DOWNLOAD_CMD}" = "x" -a -x "$CURL" ] ; then
DOWNLOAD_CMD="$CURL -L -O"
fi
base=http://files.freeswitch.org/
base=https://github.com/freeswitch/freeswitch-sounds/releases/download
tarfile=$1
install=$2
# Build the GitHub release URL from the tarball name:
# freeswitch-sounds-<voice>-<rate>-<version>.tar.gz -> tag <voice>-<version>
fname=`basename "$tarfile"`
stem=${fname#freeswitch-sounds-}
stem=${stem%.tar.gz}
sver=${stem##*-}
srest=${stem%-*}
svoice=${srest%-*}
url=$base/$svoice-$sver/$fname
echo -n "#"
pwd
echo "# $0 $1 $2"
@@ -29,7 +39,7 @@ if [ -n "$FS_SOUNDS_DIR" ]; then
fi
if [ ! -f $DIR/$tarfile ]; then
(cd $DIR && $DOWNLOAD_CMD $base$tarfile)
(cd $DIR && $DOWNLOAD_CMD $url)
if [ ! -f $DIR/$tarfile ]; then
echo "cannot find $tarfile"
exit 1