diff --git a/README.md b/README.md index bdcf384..ff68770 100644 --- a/README.md +++ b/README.md @@ -49,18 +49,14 @@ Chaque développeur lance `install.sh` une fois. git clone https://gargoton.petite-maison-orange.fr/eric/CrazyClaude.git .claude ``` -### 2. Cloner llm-functions - -```sh -git clone https://github.com/sigoden/llm-functions.git .claude/llm-functions -``` - -### 3. Lancer le script d'installation +### 2. Lancer le script d'installation ```sh bash .claude/install.sh ``` +Le script clone automatiquement `llm-functions` si absent. + Le script : - crée le virtualenv Python - construit les outils llm-functions diff --git a/install.sh b/install.sh index 769d912..e1c4a95 100755 --- a/install.sh +++ b/install.sh @@ -25,14 +25,14 @@ python3 -m venv "$CLAUDE_DIR/venv" echo "OK" echo "" -echo "=== Construction des outils llm-functions ===" -if [[ -f "$CLAUDE_DIR/llm-functions/Argcfile.sh" ]]; then - (cd "$CLAUDE_DIR/llm-functions" && argc build) - echo "OK" +echo "=== Installation de llm-functions ===" +if [[ ! -f "$CLAUDE_DIR/llm-functions/Argcfile.sh" ]]; then + git clone https://github.com/sigoden/llm-functions.git "$CLAUDE_DIR/llm-functions" else - echo "WARN : llm-functions non trouvé — lance d'abord :" - echo " git subtree add --prefix .claude/llm-functions https://github.com/sigoden/llm-functions.git main --squash" + echo "déjà présent" fi +(cd "$CLAUDE_DIR/llm-functions" && argc build) +echo "OK" echo "" echo "=== Mise à jour du .gitignore projet ==="