Switch from gnutoo.srht.site/libreboot to libreboot.srht.site

As adding organization support to Source Hut is still a
work in progress, we will use this workaround in the
meantime.

Sourceware also uses a similar workaround.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2022-12-20 17:19:17 +01:00
parent 75660feab4
commit 4a7e21edc7
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
4 changed files with 7 additions and 42 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
/untitled/
/id_oauth2_bearer
/index.html
/lighttpd.conf
/website.tar.gz

View File

@ -12,7 +12,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
DOMAIN := gnutoo.srht.site
DOMAIN := libreboot.srht.site
.PHONY: all build help upload website.tar.gz
@ -62,12 +62,8 @@ 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 index.html
sed 's/DOMAIN/$(DOMAIN)/' index.html.tmpl > index.html
website.tar.gz: build
tar \
--exclude-vcs \
--format=gnu \
@ -77,6 +73,5 @@ website.tar.gz: build index.html
-czf \
website.tar.gz \
untitled/www/ \
index.html \
--transform="s#untitled/www/lbwww/site/#libreboot/#" \
--transform="s#untitled/www/lbwww-img/www/#libreboot/img/#"
--transform="s#untitled/www/lbwww/site/##" \
--transform="s#untitled/www/lbwww-img/www/#img/#"

View File

@ -17,7 +17,7 @@
set -e
if [ ! -d untitled ] ; then
git clone https://git.sr.ht/~gnutoo/untitled
git clone https://git.sr.ht/~libreboot/untitled
else
git -C untitled clean -dfx
git -C untitled pull --rebase
@ -26,14 +26,14 @@ fi
cd untitled && mkdir -p www && cd www
if [ ! -d lbwww ] ; then
git clone https://git.sr.ht/~gnutoo/lbwww
git clone https://git.sr.ht/~libreboot/lbwww
else
git -C lbwww clean -dfx
git -C lbwww pull --rebase
fi
if [ ! -d lbwww-img ] ; then
git clone https://git.sr.ht/~gnutoo/lbwww-img
git clone https://git.sr.ht/~libreboot/lbwww-img
else
git -C lbwww-img clean -dfx
git -C lbwww-img pull --rebase

View File

@ -1,29 +0,0 @@
<!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>Websites:</h2></u>
<ul>
<li> <a href="libreboot/">Libreboot</a></li>
</ul>
</body></html>