Some checks are pending
Build NFDOS ISO / build (push) Waiting to run
65 lines
2.4 KiB
Markdown
65 lines
2.4 KiB
Markdown
grep -n "^[ ]\+" /home/neo/Público/nfdos/src/Makefile.am
|
|
grep -n "^[ ]\+" /home/neo/Público/nfdos/configure.ac
|
|
file Makefile.am
|
|
file src/Makefile.am
|
|
file configure.ac
|
|
cat -A Makefile.am | grep '\^I'
|
|
cat -A src/Makefile.am | grep '\^I'
|
|
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:
|
|
```
|
|
# ===========================
|
|
# 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
|
|
```
|
|
a sincro do nfdos esta tudo ok, porem ao sincronizar o neurotron ele pede o user e senha
|