"Auto-commit via make git"
Some checks failed
Build NFDOS ISO / build (push) Has been cancelled

This commit is contained in:
neo.webmaster.2@gmail.com 2025-11-27 12:04:53 +01:00
parent 6017bdccd1
commit 2a5d705df7
2 changed files with 4 additions and 51 deletions

1
.gitignore vendored
View File

@ -28,6 +28,7 @@ busybox/
linux/
e2fsprogs/
x-tools/
*.tar.gz
*.tar.bz2
*.zip

View File

@ -9,56 +9,8 @@ cat -A configure.ac | grep '\^I'
nl -ba Makefile | sed -n '770,790p'
grep -n "^[ ]" Makefile | head
oie amor 😎 vamos dar uma arrumada na casa. para iniciar podemos ajustar o make git:
hmmm 😏:
```
# ===========================
# Git (commit + push)
# ===========================
git: check-remote
@echo "📦 Commit automático → Gitea (NFDOS)"
@git config user.name $(GIT_USER)
@git config user.email $(GIT_EMAIL)
@git rev-parse --abbrev-ref HEAD >/dev/null 2>&1 || true
@git add -A
@git commit -m "$$(echo '$(COMMIT_MSG)')" || echo "Nenhuma modificação para commitar."
@git push $(GIT_REMOTE) $(GIT_BRANCH)
@echo ""
@echo "🧠 Sincronizando Neurotron…"
@if [ -d "$(NEUROTRON_DIR)/.git" ]; then \
cd $(NEUROTRON_DIR) && \
git add -A && \
git commit -m "Auto-commit via make git (triggered by NFDOS)" || echo "Nenhuma modificação no Neurotron."; \
git push $(NEUROTRON_REMOTE) $(NEUROTRON_BRANCH); \
echo "✔ Neurotron sincronizado."; \
else \
echo "⚠️ Neurotron não é um repositório git — ignorado."; \
fi
# ===========================
# Git Remote (HTTPS → SSH Auto-Fix)
# ===========================
check-remote:
@REMOTE_URL=$$(git remote get-url $(GIT_REMOTE)); \
if echo $$REMOTE_URL | grep -q '^https://gitea\.neoricalex\.com'; then \
echo "⚠️ Repositório configurado com HTTPS:"; \
echo " $$REMOTE_URL"; \
echo "🔄 Convertendo para SSH (porta 2222)..."; \
SSH_URL=$$(echo $$REMOTE_URL | sed -E 's|https://gitea\.neoricalex\.com[:/]+|ssh://git@gitea.neoricalex.com:2222/|'); \
git remote set-url $(GIT_REMOTE) $$SSH_URL; \
echo "✅ Remote atualizado para:"; \
git remote -v; \
else \
echo "✅ Remote SSH já configurado:"; \
git remote -v | grep $(GIT_REMOTE); \
fi; \
echo "🔍 Testando conectividade SSH com Gitea..."; \
if ssh -T git@gitea.neoricalex.com -p 2222 2>&1 | grep -q "successfully authenticated"; then \
echo "✅ Conexão SSH funcional com Gitea."; \
else \
echo "❌ Falha na autenticação SSH com Gitea."; \
echo " Verifique a chave em ~/.ssh/id_ed25519.pub e nas SSH Keys do Gitea."; \
exit 1; \
fi
git rm -r --cached ./src/_nfdos/e2fsprogs
fatal: pathspec 'e2fsprogs/' não encontrou nenhum arquivo
```
a sincro do nfdos esta tudo ok, porem ao sincronizar o neurotron ele pede o user e senha