This commit is contained in:
parent
6017bdccd1
commit
2a5d705df7
1
.gitignore
vendored
1
.gitignore
vendored
@ -28,6 +28,7 @@ busybox/
|
|||||||
linux/
|
linux/
|
||||||
e2fsprogs/
|
e2fsprogs/
|
||||||
x-tools/
|
x-tools/
|
||||||
|
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.tar.bz2
|
*.tar.bz2
|
||||||
*.zip
|
*.zip
|
||||||
|
|||||||
54
CHANGELOG.md
54
CHANGELOG.md
@ -9,56 +9,8 @@ cat -A configure.ac | grep '\^I'
|
|||||||
nl -ba Makefile | sed -n '770,790p'
|
nl -ba Makefile | sed -n '770,790p'
|
||||||
grep -n "^[ ]" Makefile | head
|
grep -n "^[ ]" Makefile | head
|
||||||
|
|
||||||
oie amor 😎 vamos dar uma arrumada na casa. para iniciar podemos ajustar o make git:
|
hmmm 😏:
|
||||||
```
|
```
|
||||||
# ===========================
|
git rm -r --cached ./src/_nfdos/e2fsprogs
|
||||||
# Git (commit + push)
|
fatal: pathspec 'e2fsprogs/' não encontrou nenhum arquivo
|
||||||
# ===========================
|
|
||||||
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
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user