From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:57:13 +0000 (+0300) Subject: Auto-commit: Makefile updated on 3/12/2026, 2026-03-12T00:57:13.733Z X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=17d2d7889778ac104f7618bd200bb2026b3664b2;p=Mikrotiks%2Fros.vados.ru.git Auto-commit: Makefile updated on 3/12/2026, 2026-03-12T00:57:13.733Z --- diff --git a/Makefile b/Makefile index c6ed6f802..417b9cf19 100644 --- a/Makefile +++ b/Makefile @@ -42,16 +42,22 @@ export BUILD_DIR REPO_DIR ALL_RSC GLOB_RSC run: @$(MAKE) check; rc=$$?; \ if [ $$rc -eq 0 ]; then \ - echo "[run] check rc=0, go to commitinfo.sh..."; \ - $(MAKE) $(commitinfo.sh); \ - echo "[run] commitinfo.sh exit 0. Go to checksums.sh..."; \ - $(MAKE) checksums; \ - echo "[run] checksums.sh exit 0. Do git add commit and push..."; \ - git add .; \ - git commit -m '$(COMM_INFO)'; \ - git push; \ + echo "[run] check $$rc, go to commitinfo.sh..."; \ + @$(MAKE) $(commitinfo.sh); ci=$$?; \ + if [ $$ci -eq 0 ]; then \ + echo "[run] commitinfo.sh exit $$ci. Go to checksums.sh..."; \ + @$(MAKE) checksums; cs=$$?; \ + if [ $$cs -eq 0 ]; then \ + echo "[run] checksums.sh exit $$rc. Do git add commit and push..."; \ + git add .; \ + git commit -m '$(COMM_INFO)'; \ + git push; \ + else \ + $(MAKE) notify "[run] checksums.sh exit $$cs, check it!"; \ + else \ + $(MAKE) notify "[run] commitinfo.sh exit $$ci, check it!"; \ else \ - echo "[run] check rc=$$rc, stop"; \ + echo "[run] check exit $$rc, repo is clean exit Ok."; \ fi @echo "[run] done"