2022-11-22 20:30:28 +01:00
|
|
|
# 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/>.
|
2022-11-22 20:48:57 +01:00
|
|
|
.PHONY: all build website.tar.gz
|
2022-11-22 20:30:28 +01:00
|
|
|
|
2022-11-22 20:48:57 +01:00
|
|
|
all: website.tar.gz
|
|
|
|
|
|
|
|
build:
|
2022-11-22 20:30:28 +01:00
|
|
|
guix shell \
|
|
|
|
--container \
|
|
|
|
--network \
|
|
|
|
--emulate-fhs \
|
|
|
|
bash \
|
|
|
|
coreutils \
|
|
|
|
findutils \
|
|
|
|
git \
|
|
|
|
grep \
|
|
|
|
nss-certs \
|
|
|
|
pandoc \
|
|
|
|
sed \
|
|
|
|
-- \
|
|
|
|
./build.sh
|
2022-11-22 20:48:57 +01:00
|
|
|
|
|
|
|
# See https://reproducible-builds.org/docs/archives/ for more details
|
|
|
|
website.tar.gz: build
|
|
|
|
tar \
|
|
|
|
--format=gnu \
|
|
|
|
--mtime='1970-01-01 00:00Z' \
|
|
|
|
--owner=0 --group=0 --numeric-owner \
|
|
|
|
--sort=name \
|
|
|
|
-czf \
|
|
|
|
website.tar.gz \
|
|
|
|
untitled/www/lbwww/site/ \
|
|
|
|
--transform="s#untitled/www/lbwww/site/##" \
|