-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·39 lines (35 loc) · 1.17 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·39 lines (35 loc) · 1.17 KB
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
38
39
#!/usr/bin/env bash
# Bootstraps the v1.1 quickstart target.
#
# 1. Initialize a fresh git repo at $1 (default /tmp/ek-quickstart-target)
# 2. Copy target/ contents (src + bots + pyproject) in and commit on the
# target's first commit, so the role scripts and lint config are
# reachable inside every experiment worktree.
#
# After running this script:
#
# evolution-kernel \
# --config examples/quickstart/evolution.yml \
# --repo /tmp/ek-quickstart-target \
# --ledger /tmp/ek-quickstart-ledger \
# --loop
#
set -euo pipefail
cd "$(dirname "$0")"
TARGET="${1:-/tmp/ek-quickstart-target}"
rm -rf "$TARGET"
mkdir -p "$TARGET"
cp -r target/. "$TARGET/"
echo "# evolution-kernel · v1.1 quickstart target" > "$TARGET/README.md"
cd "$TARGET"
git init -q -b main
git -c user.email=demo@example.com -c user.name=demo add -A
git -c user.email=demo@example.com -c user.name=demo commit -q -m "quickstart target initial commit"
echo "quickstart target ready at: $TARGET"
echo ""
echo "next:"
echo " evolution-kernel \\"
echo " --config examples/quickstart/evolution.yml \\"
echo " --repo $TARGET \\"
echo " --ledger /tmp/ek-quickstart-ledger \\"
echo " --loop"