Commit b498cc6a authored by Ben Gamari's avatar Ben Gamari 🐢

Clean up index page

parent 5bba9b5c
Pipeline #8066 passed with stages
in 33 minutes and 20 seconds
......@@ -38,26 +38,49 @@ extract_keys_tarball() {
}
build_index_html() {
keys="$(find keys/root -type f -printf "%f")"
cat >repo/cabal.project.local <<EOF
local keys="$(find keys/root -type f -printf "%f")"
local newline=$'\n'
cat | sed -e 's/ \+$//' >repo/cabal.project.local <<EOF
repository head.hackage.ghc.haskell.org
url: https://ghc.gitlab.haskell.org/head.hackage/
secure: True
root-keys: ${keys//.private/ }
key-threshold: 3
root-keys:
${keys//.private/$newline }
EOF
cat >repo/index.html <<EOF
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>head.hackage</title>
</head>
<body>
<h1>head.hackage @ GHC</h1>
<p>See the <a href="">head.hackage documentation</a> for details on using this repository.</p>
<pre>
$(cat repo/cabal.project.local)
</pre>
<section class="container">
<h1 class="title">head.hackage</h1>
<p>This is a Haskell package repository containing patched
packages from <a href="https://hackage.haskell.org/">Hackage</a> for use
with <a href="https://gitlab.haskell.org/ghc/ghc">GHC</a> prereleases.
<p>To use package repository with <code>cabal-install</code> add the following
to your project's <code>cabal.project.local</code> and run
<code>cabal new-update</code>:
<pre><code>
$(cat repo/cabal.project.local)
</code></pre>
<p>If you find a package that doesn't build with a recent GHC
pre-release see the <a
href="https://gitlab.haskell.org/ghc/head.hackage#adding-a-patch">contributor
documentation</a> for instructions on how to contribute a patch.
<p>If you encounter other trouble refer to the
<a href="https://gitlab.haskell.org/ghc/head.hackage">head.hackage
documentation</a> or
<a href="https://gitlab.haskell.org/ghc/head.hackage/issues">let us know</a>.
</section>
</body>
</html>
EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment