circuitpython/.devcontainer/fetch-port-submodules.sh
2024-03-21 10:20:09 +01:00

19 lines
552 B
Bash
Executable file

#!/bin/bash
# -----------------------------------------------------------------------------
# fetch-port-submodules.sh: fetch port specific submodules
#
# Author: Bernhard Bablok
#
# -----------------------------------------------------------------------------
REPO_ROOT="/workspaces/circuitpython"
cd "$REPO_ROOT"
if [ -z "$CP_PORT" ]; then
echo -e "[fetch-port-submodules.sh] CP_PORT not set. Cannot fetch submodules!"
exit 3
fi
cd "ports/$CP_PORT"
echo -e "[fetch-port-submodules.sh] fetching necessary submodules"
make fetch-port-submodules