From d75096fd52ea4e4d297c95ca838f2eb7092d8fe9 Mon Sep 17 00:00:00 2001 From: Benjamin Swartley Date: Tue, 22 Sep 2026 13:46:25 -0500 Subject: [PATCH 1/2] Fix README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d4fedc1..88c3ee9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Super Tryhard Awesome Spreadsheet For Even More Success (STARFEMS) +Super Tryhard Awesome Repo For Even More Success (STARFEMS) --- A yaml-driven competition progress tracking repository From be0104e4089e13690c8edb96a588b9b51b9f13df Mon Sep 17 00:00:00 2001 From: Benjamin Swartley Date: Wed, 23 Sep 2026 16:45:14 -0500 Subject: [PATCH 2/2] Add lock function to prevent mod of chall files --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index f380c83..aa8acbd 100644 --- a/Makefile +++ b/Makefile @@ -11,13 +11,22 @@ CHALLS=$(foreach CAT,\ )\ ) +.PHONY: printVerifiedFlags printVerifiedFlags: $(CHALLS) find . -name 'Questions.yml' \ | xargs -n1 yq -c '.Questions.[].Question | select((.VerifiedBy != null) and (.Submitted == false)) | (.Text, .Flag)' +.PHONY: lock +lock: $(CHALLS) + find . -maxdepth 3 -type d -name files -exec chmod -R a-w {} \; $(CHALLS): mkdir -p $(foreach PERSON,$(patsubst "%",%,$(PEOPLE)),$(@)/$(PERSON)) mkdir -p $(@)/files find $(@) -type d -mindepth 1 -exec touch {}/.gitkeep \; cp ./.Questions.yml $(@)/Questions.yml + +.PHONY: clean +clean: + chmod -R a+w . + rm -rf $(CATEGORIES)