CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/extensions/sunxi-tools.sh
Views: 3956
1
function fetch_sources_tools__sunxi_tools() {
2
fetch_from_repo "https://github.com/linux-sunxi/sunxi-tools" "${EXTER}/cache/sources/sunxi-tools" "branch:master"
3
}
4
5
function build_host_tools__compile_sunxi_tools() {
6
# Compile and install only if git commit hash changed
7
cd "${EXTER}"/cache/sources/sunxi-tools || exit
8
# need to check if /usr/local/bin/sunxi-fexc to detect new Docker containers with old cached sources
9
if [[ ! -f .commit_id || $(improved_git rev-parse @ 2>/dev/null) != $(<.commit_id) || ! -f /usr/local/bin/sunxi-fexc ]]; then
10
display_alert "Compiling" "sunxi-tools" "info"
11
make -s clean >/dev/null
12
make -s tools >/dev/null
13
mkdir -p /usr/local/bin/
14
make install-tools >/dev/null 2>&1
15
improved_git rev-parse @ 2>/dev/null >.commit_id
16
fi
17
}
18
19