Skip to content
Merged
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
6 changes: 5 additions & 1 deletion scripts/activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ if [[ "$0" == "${BASH_SOURCE[0]}" ]]; then
exit 1
fi

export PYAV_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd)"
if [[ -n "$ZSH_VERSION" ]]; then
export PYAV_ROOT="$(realpath -- "$(dirname -- "$(readlink -f -- "$0")")/..")"
else
export PYAV_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd)"
fi

if [[ ! "$PYAV_LIBRARY" ]]; then
if [[ "$1" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-deps
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cd "$PYAV_LIBRARY_ROOT"
if [[ ! -d $PYAV_LIBRARY ]]; then
url="https://ffmpeg.org/releases/$PYAV_LIBRARY.tar.gz"
echo Downloading $url
wget --no-check-certificate "$url" || exit 1
curl "$url" --output ${PYAV_LIBRARY}.tar.gz || exit 1
tar -xzf $PYAV_LIBRARY.tar.gz
rm $PYAV_LIBRARY.tar.gz
echo
Expand Down
Loading