From 7b9c475de4d30a909a0f4da4c0a2f754498f7f0e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 2 May 2025 18:25:16 -0300 Subject: WIP: Commit sh code as-is --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2af9251..0c2ce7d 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,20 @@ side-assets = \ ## and installation. all: $(derived-assets) +tests/resources/repositories/repo-1/.git \ +tests/resources/repositories/repo-2/.git: + ln -s .gitdir $@ + +emit-index: src/gistatic + @rm -rf tmp/index/ + @./src/gistatic -i -o tmp/index/ ~/dev/published/git-permalink/ ../capim/ ../libedn/ ../listatic/ ../lisp-cli/ + @ln -rfs tmp/git-permalink tmp/index/git-permalink + +emit-repo: src/gistatic + @rm -rf tmp/git-permalink/ + @time ./src/gistatic -o tmp/git-permalink/ -u FIXME-url-1 ~/dev/published/git-permalink/ + +run: shellcheck emit-index emit-repo check-unit: @@ -53,6 +67,10 @@ check-integration: ## build can run tests at the same time. The required artifacts ## are created if missing. check: check-unit check-integration +# tests/resources/repositories/repo-1/.git +# tests/resources/repositories/repo-2/.git +# sh tests/build-sample.sh +# sh tests/integration.sh -- cgit v1.2.3