simplifying the ffmpeg download.sh

pull/53/head
Javernaut 4 years ago
parent 15d32bb6e3
commit f0718ba784
  1. 14
      scripts/ffmpeg/download.sh

@ -9,17 +9,11 @@
# Getting sources of a particular FFmpeg release. # Getting sources of a particular FFmpeg release.
# Same argument (FFmpeg version) produces the same source set. # Same argument (FFmpeg version) produces the same source set.
function ensureSourcesTar() { function ensureSourcesTar() {
FFMPEG_SOURCES=ffmpeg-${FFMPEG_SOURCE_VALUE} source ${SCRIPTS_DIR}/common-functions.sh
if [[ ! -d "$FFMPEG_SOURCES" ]]; then downloadTarArchive \
TARGET_FILE_NAME=ffmpeg-${FFMPEG_SOURCE_VALUE}.tar.bz2 "ffmpeg" \
"https://www.ffmpeg.org/releases/ffmpeg-${FFMPEG_SOURCE_VALUE}.tar.bz2"
curl https://www.ffmpeg.org/releases/${TARGET_FILE_NAME} --output ${TARGET_FILE_NAME}
tar xf ${TARGET_FILE_NAME} -C .
rm ${TARGET_FILE_NAME}
fi
export SOURCES_DIR_ffmpeg=$(pwd)/${FFMPEG_SOURCES}
} }
# Getting sources of a particular branch or a tag of FFmpeg's git repository. # Getting sources of a particular branch or a tag of FFmpeg's git repository.

Loading…
Cancel
Save