Skip to content

Commit

Permalink
Support Macintosh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Oct 11, 2024
1 parent a6615de commit 63a10e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions generate-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# This script will substitute the benchmark results into the HTML page.
# Note: editing HTML with sed may look strange, but at least we avoid using node.js and npm, and that's good.

# This is needed on Mac OS. Do `brew install coreutils`.
[ -n "$HOMEBREW_PREFIX" ] && PATH="${HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin:${PATH}"
if command -v gsed >/dev/null 2>&1
then
alias sed='gsed'
fi

(
sed '/^const data = \[$/q' index.html

Expand Down

0 comments on commit 63a10e3

Please sign in to comment.