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/rkbin-tools.sh
Views: 3956
1
function fetch_sources_tools__rkbin_tools() {
2
fetch_from_repo "https://github.com/orangepi-xunlong/rk-rootfs-build" "${EXTER}/cache/sources/rkbin-tools" "branch:rkbin"
3
}
4
5
function build_host_tools__install_rkbin_tools() {
6
# install only if git commit hash changed
7
cd "${EXTER}"/cache/sources/rkbin-tools || exit
8
# need to check if /usr/local/bin/loaderimage 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/loaderimage ]]; then
10
display_alert "Installing" "rkbin-tools" "info"
11
mkdir -p /usr/local/bin/
12
install -m 755 tools/loaderimage /usr/local/bin/
13
install -m 755 tools/trust_merger /usr/local/bin/
14
improved_git rev-parse @ 2>/dev/null >.commit_id
15
fi
16
}
17
18