Initial commit: the public installer

install.sh and install.ps1, copied from the agent-standups source repo, which
stays private. Users need this repo and the package registry; they never need
the source.

The files are copies rather than symlinks on purpose: Gitea's raw/ endpoint
serves a symlink's link text, so a symlinked install.sh would pipe a relative
path into the user's shell instead of a script. sync.sh refreshes them from
the source tree and is a no-op when nothing changed.

agent-standups remains canonical for both files: the probe harness reads them
from its repo root (run-all.sh passes $REPO/install.sh to the R06 probes) and
P8-24 copies them into a scratch tree.

Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
dsql committed 2026-10-15 11:28:57 -04:00
commit 93473dd789
4 files changed
+956

No files matched your search

Executable
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
# Copy the installers from the source repo into this one.
#
# agent-standups is canonical: install.sh and install.ps1 are tracked there,
# the probe harness reads them from the repo root (run-all.sh passes
# $REPO/install.sh to the R06 probes), and P8-24 copies them. This repo is the
# public face, so the files are copied rather than symlinked -- Gitea's raw/
# endpoint serves a symlink's link text, which would pipe a path into the
# user's shell instead of a script.
#
# Run this before committing here, whenever the installers change.
set -eu
SRC="${1:-../agent-standups}"
[ -f "$SRC/install.sh" ] || { echo "error: no install.sh under $SRC" >&2; exit 1; }
changed=0
for f in install.sh install.ps1; do
if ! cmp -s "$SRC/$f" "$f" 2>/dev/null; then
cp "$SRC/$f" "$f"
echo " updated $f"
changed=1
fi
done
chmod +x install.sh
[ "$changed" = 1 ] || echo " already in sync with $SRC"