From e9af259c74472ed9052f3fa9dec4a58729e7f002 Mon Sep 17 00:00:00 2001 From: Javernaut Date: Sat, 3 Aug 2019 08:22:51 +0300 Subject: [PATCH] Fixing the absence of sources folder --- ffmpeg-android-maker.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffmpeg-android-maker.sh b/ffmpeg-android-maker.sh index 33994a2..30d1aa9 100755 --- a/ffmpeg-android-maker.sh +++ b/ffmpeg-android-maker.sh @@ -21,6 +21,8 @@ rm -rf ${STATS_DIR} rm -rf ${OUTPUT_DIR} mkdir -p ${STATS_DIR} mkdir -p ${OUTPUT_DIR} +# Note: the 'source' folder wasn't actually deleted, just ensure it exists +mkdir -p ${SOURCES_DIR} # Getting sources of a particular ffmpeg release. # Same argument (ffmpeg version) produces the same source set. @@ -33,7 +35,6 @@ function ensureSourcesTag() { TARGET_FILE_NAME=ffmpeg-${FFMPEG_VERSION}.tar.bz2 TARGET_FILE_PATH=${SOURCES_DIR}/${TARGET_FILE_NAME} - mkdir -p ${SOURCES_DIR} curl https://www.ffmpeg.org/releases/${TARGET_FILE_NAME} --output ${TARGET_FILE_PATH} tar xvjf ${TARGET_FILE_PATH} -C ${SOURCES_DIR} rm ${TARGET_FILE_PATH}