Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added SVT-AV1-v0.8.6.tar.gz
Binary file not shown.
Binary file added dav1d-0.8.2.tar.gz
Binary file not shown.
Binary file added libaom-2.0.2.tar.gz
Binary file not shown.
Binary file added libavif-0.9.0.tar.gz
Binary file not shown.
Binary file added nasm-2.15.05.tar.gz
Binary file not shown.
Binary file added rav1e-0.4.0.tar.gz
Binary file not shown.
Binary file added rav1e-vendor-0.4.0.tar.gz
Binary file not shown.
31 changes: 31 additions & 0 deletions rav1e-vendorize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
# Use this script to create a tar.gz with rav1e vendored crates

RAV1E_VERSION=${RAV1E_VERSION:-$1}

if [ -z "$IS_DOCKER" ]; then
DEPENDS_DIR=$(cd $(dirname $0) && pwd -P)

if [ ! -e "$DEPENDS_DIR/rav1e-$RAV1E_VERSION.tar.gz" ]; then
>&2 echo "Usage: rav1e-vendorize.sh VERSION"
>&2 echo ""
>&2 echo "Creates a tar.gz file with a vendor directory containing "
>&2 echo "rav1e VERSION's dependencies."
>&2 echo ""
>&2 echo "VERSION must correspond to a file named rav1e-\$VERSION.tar.gz"
exit 1
fi

docker run --rm \
-v "$DEPENDS_DIR:/io" \
-e RAV1E_VERSION=$RAV1E_VERSION \
-e IS_DOCKER=1 \
rustlang/rust:nightly-slim \
/io/rav1e-vendorize.sh
else
cd /tmp
tar -zxvf /io/rav1e-$RAV1E_VERSION.tar.gz
cd rav1e-$RAV1E_VERSION
cargo vendor --versioned-dirs
tar -a -cf /io/rav1e-vendor-$RAV1E_VERSION.tar.gz vendor
fi