|
|
@ -2,16 +2,17 @@ |
|
|
|
|
|
|
|
|
|
|
|
# Exports SOURCES_DIR_libaom - path where actual sources are stored |
|
|
|
# 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 |
|
|
|
if [[ ! -d "$AOM_SOURCES" ]]; then |
|
|
|
git clone https://aomedia.googlesource.com/aom |
|
|
|
TARGET_FILE_NAME=${AOM_VERSION}.tar.gz |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd aom |
|
|
|
curl https://aomedia.googlesource.com/aom/+archive/${TARGET_FILE_NAME} --output ${TARGET_FILE_NAME} |
|
|
|
git pull origin master |
|
|
|
mkdir $AOM_SOURCES |
|
|
|
cd .. |
|
|
|
tar xf ${TARGET_FILE_NAME} -C $AOM_SOURCES |
|
|
|
|
|
|
|
rm ${TARGET_FILE_NAME} |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
export SOURCES_DIR_libaom=$(pwd)/${AOM_SOURCES} |
|
|
|
export SOURCES_DIR_libaom=$(pwd)/${AOM_SOURCES} |
|
|
|