Without that we can only have one website.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2022-11-22 21:31:49 +01:00
parent b7e10712a3
commit 26810823c9
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
3 changed files with 37 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/untitled/
/id_oauth2_bearer
/index.html
/website.tar.gz

View File

@ -47,8 +47,12 @@ upload: website.tar.gz
-Fcontent=@website.tar.gz \
https://pages.sr.ht/publish/$(DOMAIN)
index.html: index.html.tmpl
sed 's/DOMAIN/$(DOMAIN)/' $? > $@
# See https://reproducible-builds.org/docs/archives/ for more details
website.tar.gz: build
website.tar.gz: build index.html
sed 's/DOMAIN/$(DOMAIN)/' index.html.tmpl > index.html
tar \
--format=gnu \
--mtime='1970-01-01 00:00Z' \
@ -57,4 +61,5 @@ website.tar.gz: build
-czf \
website.tar.gz \
untitled/www/lbwww/site/ \
--transform="s#untitled/www/lbwww/site/##" \
index.html \
--transform="s#untitled/www/lbwww/site/#libreboot/#" \

29
index.html.tmpl Normal file
View File

@ -0,0 +1,29 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--
# Copyright (C) 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<html>
<head>
<title>DOMAIN</title>
</head>
<body>
<u><h2>Services:</h2></u>
<ul>
<li> <a href="libreboot/">Libreboot</a></li>
</ul>
</body></html>