mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-17 04:42:04 +08:00
f67000022c
* edl * only edl * cleaner * restore DIR * better name * export * edl setup in extract_tools * back to root dir * update + wait for edl merge * good * fix * fix * update checkpoint * edl_flash.sh * edl command setup script * remove edl_flash * remove edl json * simple wrapper * fix set slot * bump edl --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
32 lines
653 B
Bash
Executable File
32 lines
653 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
ROOT=$DIR/../
|
|
|
|
# just a nice wrapper around the edl python tool
|
|
|
|
EDL_PATH=$DIR/edl_repo
|
|
VERSION="2ed24c090f48e6a368bb8c3744f30e1742bb525a"
|
|
|
|
if [ ! -d "$EDL_PATH" ]; then
|
|
rm -rf $EDL_PATH
|
|
git clone https://github.com/bkerler/edl $EDL_PATH
|
|
fi
|
|
|
|
pushd $EDL_PATH > /dev/null
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
|
|
if [ "$(< .git/HEAD)" != "$VERSION" ]; then
|
|
echo "updating edl..."
|
|
git fetch origin $VERSION
|
|
git checkout $VERSION
|
|
git submodule update --depth=1 --init --recursive
|
|
|
|
pip3 install -r requirements.txt
|
|
fi
|
|
popd > /dev/null
|
|
|
|
$EDL_PATH/edl "$@"
|