From 88edeefd882997495b17bdf26689d7a53dbd8845 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Fri, 27 Sep 2024 12:47:13 +0300 Subject: [PATCH] show links correctly --- Makefile | 5 ++++- main.xsl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4fe9f99..462f1d6 100644 --- a/Makefile +++ b/Makefile @@ -364,21 +364,24 @@ reports/%.txt: bin/%.bin asm/%.asm | reports compiler=$$($(JAVAC) -version | head -1) elif [[ "$${name}" =~ ^csharp- ]]; then compiler=$$($(DOTNET) --version | head -1) + file=$$(echo $${name} | cut -f1 -d-)/$$(echo $${name} | cut -f2- -d-)/Program.cs elif [[ "$${name}" =~ ^pascal- ]]; then compiler=$$($(FPC) -iV | head -1) elif [[ "$${name}" =~ ^haskell- ]]; then compiler=$$($(GHC) --version | head -1) + file=$$(echo $${name} | cut -f1 -d-)/$$(echo $${name} | cut -f2- -d-).hs elif [[ "$${name}" =~ ^rust- ]]; then compiler=$$($(RUSTC) --version | head -1) elif [[ "$${name}" =~ ^go- ]]; then compiler=$$($(GO) version | head -1) + file=$$(echo $${name} | cut -f1 -d-)/cmd/$$(echo $${name} | cut -f2- -d-)/main.go else compiler='unknown' fi echo " \ $$(echo "$${file}" | jq -Rr @html) \ $$(echo "$${name}" | jq -Rr @html) \ - $$(echo "$${compiler}") \ + $$(echo "$${compiler}" | jq -Rr @html) \ $$(echo "$${instructions}" | jq -Rr @html) \ $$(echo "$${cycles}" | jq -Rr @html) \ \ diff --git a/main.xsl b/main.xsl index f26aeb2..486b0bb 100644 --- a/main.xsl +++ b/main.xsl @@ -226,7 +226,7 @@ SOFTWARE. x - ? +