From 20574c185a186fdde09852ba3543645da94cf826 Mon Sep 17 00:00:00 2001 From: Stas Uschakow <150824261+ThatStasGuy@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:58:39 +0100 Subject: [PATCH 1/2] Make shellcheck to fail on warning only --- .github/workflows/reviewdog.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index a0e3feb..4eec08a 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -21,3 +21,4 @@ jobs: exclude: "./.git/*" # Optional. check_all_files_with_shebangs: "true" # Optional. fail_on_error: "true" + shellcheck_flags: --severity=warning From cc5ca506795c0eb6d61be7acd9b4cb86928b8f74 Mon Sep 17 00:00:00 2001 From: Stanislav Uschakow Date: Thu, 29 Feb 2024 14:31:40 +0100 Subject: [PATCH 2/2] Minor changes to Makefile so the build system can actually build RPMs --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 26fb666..0f92670 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ MAJOR=0 MINOR=1 RELEASE=1 -VERSION=$(MAJOR).$(MINOR)-$(RELEASE)$(DIST) +VERSION=$(MAJOR).$(MINOR)-$(RELEASE) $(info Building version $(VERSION)) @@ -36,8 +36,10 @@ MAN_FILE_LOCATION=/usr/share/man/man1 all: $(error There is nothing to build here yet. Please use "make install" to install the config files) +srpm: sources + sources: - tar czf ./smart-restart-$(VERSION).tar.gz --transform 's,^,smart-restart-$(VERSION)/,' bin conf Makefile smart-restart.spec doc/smart-restart.man1 + tar czf ./smart-restart-v$(VERSION).tar.gz --transform 's,^,smart-restart-v$(VERSION)/,' bin conf Makefile smart-restart.spec doc/smart-restart.man1 install: $(info Dest: $(DEST_DIR))