refactor: installation par git clone, plus de subtree dans le projet hote
This commit is contained in:
@@ -6,10 +6,8 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
CRAZY_CLAUDE_URL="https://gargoton.petite-maison-orange.fr/eric/CrazyClaude.git"
|
||||
LLM_FUNCTIONS_URL="https://github.com/sigoden/llm-functions.git"
|
||||
CLAUDE_PREFIX=".claude"
|
||||
LLM_PREFIX=".claude/llm-functions"
|
||||
CLAUDE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
LLM_DIR="$CLAUDE_DIR/llm-functions"
|
||||
|
||||
dry_run=0
|
||||
[[ "${1:-}" == "--dry-run" ]] && dry_run=1
|
||||
@@ -32,15 +30,19 @@ require argc
|
||||
require jq
|
||||
|
||||
echo "=== Mise à jour de .claude (CrazyClaude) ==="
|
||||
run git subtree pull --prefix "$CLAUDE_PREFIX" "$CRAZY_CLAUDE_URL" main --squash
|
||||
run git -C "$CLAUDE_DIR" pull --ff-only
|
||||
|
||||
echo ""
|
||||
echo "=== Mise à jour de .claude/llm-functions ==="
|
||||
run git subtree pull --prefix "$LLM_PREFIX" "$LLM_FUNCTIONS_URL" main --squash
|
||||
run git -C "$LLM_DIR" pull --ff-only
|
||||
|
||||
echo ""
|
||||
echo "=== Reconstruction des outils llm-functions ==="
|
||||
run argc build --arcgfile "$LLM_PREFIX/Argcfile.sh"
|
||||
if [[ "$dry_run" -eq 1 ]]; then
|
||||
echo "[dry-run] argc build (dans $LLM_DIR)"
|
||||
else
|
||||
(cd "$LLM_DIR" && argc build)
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "OK — outils reconstruits dans $LLM_PREFIX/bin/"
|
||||
echo "OK — outils reconstruits dans $LLM_DIR/bin/"
|
||||
|
||||
Reference in New Issue
Block a user