aboutsummaryrefslogtreecommitdiff
path: root/scripts/install-lang.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install-lang.sh')
-rwxr-xr-xscripts/install-lang.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/install-lang.sh b/scripts/install-lang.sh
index 4097bde..0fc9ea8 100755
--- a/scripts/install-lang.sh
+++ b/scripts/install-lang.sh
@@ -76,6 +76,17 @@ if [ -f "$SRC/CLAUDE.md" ]; then
fi
fi
+# 3b. coverage-makefile.txt — project-owned Makefile fragment, seed on first
+# install. Never overwrites (the project edits its own copy) unless FORCE=1.
+if [ -f "$SRC/coverage-makefile.txt" ]; then
+ if [ -f "$PROJECT/coverage-makefile.txt" ] && [ "$FORCE" != "1" ]; then
+ echo " [skip] coverage-makefile.txt already exists (use FORCE=1 to overwrite)"
+ else
+ cp "$SRC/coverage-makefile.txt" "$PROJECT/coverage-makefile.txt"
+ echo " [ok] coverage-makefile.txt installed (copy its targets into your Makefile)"
+ fi
+fi
+
# 4. .gitignore — append missing lines (deduped, skip comments)
if [ -f "$SRC/gitignore-add.txt" ]; then
touch "$PROJECT/.gitignore"