Версия 1.0.0: релиз, Makefile (make dist), README и .gitignore для архива.

This commit is contained in:
ssh-monitor
2026-04-14 13:52:26 +10:00
parent e273c995a5
commit 85730bafb0
4 changed files with 25 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
# Версия берётся из ssh-monitor (SSH_MONITOR_VERSION).
.PHONY: dist clean-dist
VERSION := $(shell sed -n 's/^SSH_MONITOR_VERSION="\(.*\)".*/\1/p' ssh-monitor | head -n1)
DIST := ssh-monitor-$(VERSION).tar.gz
dist: $(DIST)
$(DIST): ssh-monitor
git archive --format=tar.gz --prefix=ssh-monitor-$(VERSION)/ -o $(DIST) HEAD
clean-dist:
rm -f ssh-monitor-*.tar.gz