Skip to content

Commit

Permalink
show links correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 27, 2024
1 parent d983e2b commit 88edeef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<program> \
<file>$$(echo "$${file}" | jq -Rr @html)</file> \
<name>$$(echo "$${name}" | jq -Rr @html)</name> \
<compiler>$$(echo "$${compiler}")</compiler> \
<compiler>$$(echo "$${compiler}" | jq -Rr @html)</compiler> \
<instructions>$$(echo "$${instructions}" | jq -Rr @html)</instructions> \
<cycles>$$(echo "$${cycles}" | jq -Rr @html)</cycles> \
<time>$$(echo "$${time}" | jq -Rr @html)</time> \
Expand Down
2 changes: 1 addition & 1 deletion main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ SOFTWARE.
<xsl:text>x</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>?</xsl:text>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</td>
Expand Down

0 comments on commit 88edeef

Please sign in to comment.