|
|
|
@ -2,16 +2,17 @@ |
|
|
|
|
|
|
|
|
|
# Exports SOURCES_DIR_libaom - path where actual sources are stored |
|
|
|
|
|
|
|
|
|
# TODO Consider using a specific git tag (like v1.0.0-errata1) for reproducible builds |
|
|
|
|
AOM_VERSION=v1.0.0-errata1 |
|
|
|
|
echo "Using libaom $AOM_VERSION" |
|
|
|
|
AOM_SOURCES=libaom-${AOM_VERSION} |
|
|
|
|
|
|
|
|
|
echo "Using aom master branch" |
|
|
|
|
AOM_SOURCES=aom |
|
|
|
|
if [[ ! -d "$AOM_SOURCES" ]]; then |
|
|
|
|
git clone https://aomedia.googlesource.com/aom |
|
|
|
|
fi |
|
|
|
|
TARGET_FILE_NAME=${AOM_VERSION}.tar.gz |
|
|
|
|
|
|
|
|
|
cd aom |
|
|
|
|
git pull origin master |
|
|
|
|
cd .. |
|
|
|
|
curl https://aomedia.googlesource.com/aom/+archive/${TARGET_FILE_NAME} --output ${TARGET_FILE_NAME} |
|
|
|
|
mkdir $AOM_SOURCES |
|
|
|
|
tar xf ${TARGET_FILE_NAME} -C $AOM_SOURCES |
|
|
|
|
rm ${TARGET_FILE_NAME} |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
export SOURCES_DIR_libaom=$(pwd)/${AOM_SOURCES} |
|
|
|
|