30 lines
610 B
Bash
Executable File
30 lines
610 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
DEST="${1:-$HOME/Documents/codex-ops-kit}"
|
|
|
|
rm -rf "$DEST"
|
|
mkdir -p "$DEST"
|
|
|
|
copy_path() {
|
|
local rel="$1"
|
|
local src="$REPO_ROOT/$rel"
|
|
local dest="$DEST/$rel"
|
|
mkdir -p "$(dirname "$dest")"
|
|
cp -R "$src" "$dest"
|
|
}
|
|
|
|
copy_path README.md
|
|
copy_path AGENTS.md
|
|
copy_path .gitignore
|
|
copy_path docs
|
|
copy_path memory
|
|
copy_path templates
|
|
copy_path scripts
|
|
|
|
find "$DEST/scripts" -name '__pycache__' -type d -prune -exec rm -rf {} +
|
|
find "$DEST" -name '*.pyc' -delete
|
|
|
|
echo "Created clean shareable repo at: $DEST"
|