GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Kinetra-Lab/tools/cloud_setup.sh at main · SMB-M87/Kinetra-Lab

Expand file tree

/

cloud_setup.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
37 lines (35 loc) · 1.93 KB
/

cloud_setup.sh

Copy path

File metadata and controls

executable file
·
37 lines (35 loc) · 1.93 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
# Prepares a Claude Code cloud session to build Kinetra-Lab: loads the Kinetra submodule when
# the checkout lacks it, then runs Kinetra's tools/cloud_setup.sh with Lab's own package,
# nlohmann JSON. .claude/settings.json runs it as a SessionStart hook. See
# external/Kinetra/tools/README.md#cloud_setupsh.
#
# Usage: tools/cloud_setup.sh
# Does nothing outside a cloud session (CLAUDE_CODE_REMOTE other than "true"). Always exits
# 0 and prints one line, which Claude Code adds to the agent's context.
set -uo pipefail
[[ "${CLAUDE_CODE_REMOTE:-}" == "true" ]] || exit 0
cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 0
log="${TMPDIR:-/tmp}/kinetra-cloud-setup.log"
# Only a checkout without the submodule: on a resumed session the agent may have moved it on
# purpose, and git submodule update would reset it to the commit Lab records.
if [[ ! -e external/Kinetra/.git ]]; then
if ! timeout -k 10 180 git submodule update --init --recursive >> "$log" 2>&1; then
echo "Cloud setup failed: git submodule update --init --recursive did not finish." \
"Log: $log. Run it by hand, then tools/cloud_setup.sh."
exit 0
fi
fi
kinetra_setup=external/Kinetra/tools/cloud_setup.sh
if [[ ! -f "$kinetra_setup" ]]; then
# A submodule moved to a Kinetra commit from before the script, or an interrupted checkout.
echo "Cloud setup failed: external/Kinetra has no tools/cloud_setup.sh: its commit predates" \
"the script, or its checkout is incomplete (git submodule update --init --recursive)." \
"Install the packages of the README's quick start and CI's clang-format version" \
"(external/Kinetra/docs/development.md) by hand."
exit 0
fi
# i4sim needs nlohmann JSON in every build, headless included. The README's Debian and Ubuntu
# row and CI's Ubuntu step install Kinetra's set plus the same Lab packages; change all three
# together.
exec bash "$kinetra_setup" nlohmann-json3-dev
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.