gnuboot-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1 02/12] website: Makefile.am: use common guix shell command.


From: Denis 'GNUtoo' Carikli
Subject: [PATCH v1 02/12] website: Makefile.am: use common guix shell command.
Date: Mon, 4 Nov 2024 00:18:55 +0100

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 website/Makefile.am | 54 +++++++++++++++++++++------------------------
 1 file changed, 25 insertions(+), 29 deletions(-)

diff --git a/website/Makefile.am b/website/Makefile.am
index 26f43c1..2d95b7d 100644
--- a/website/Makefile.am
+++ b/website/Makefile.am
@@ -27,15 +27,17 @@ endif
 index.html: index.html.tmpl
        sed -e "s#WEBSITE_PREFIX#$(WEBSITE_PREFIX)#g" "$^" > "$@"
 
-if WANT_GUIX
-DOT_CMD = \
-guix time-machine \
+GUIX_SHELL = guix time-machine \
        --commit=$(GUIX_REVISION) \
        -- \
        shell \
-               --system=i686-linux \
-               --container \
-               graphviz \
+       --system=i686-linux \
+       $(SENTINEL)
+
+if WANT_GUIX
+DOT_CMD = $(GUIX_SHELL) \
+       --container \
+       graphviz \
        -- \
        dot
 else
@@ -74,24 +76,21 @@ site.cfg: site.cfg.tmpl
        sed -e "s#WEBSITE_PREFIX#$(WEBSITE_PREFIX)#g" "$^" > "$@"
 
 if WANT_GUIX
-BUILD_SH_CMD = \
-guix time-machine \
-       --commit=c15a1cd88f80a90437f4b0159f22dfc84b9e6851 \
-       -- shell \
-               --container \
-               --network \
-               --emulate-fhs \
-               $(GUIX_SHARE_OPTIONS) \
-               bash \
-               coreutils \
-               findutils \
-               git \
-               grep \
-               nss-certs \
-               pandoc \
-               sed \
-               -- \
-               ./build.sh
+BUILD_SH_CMD = $(GUIX_SHELL) \
+       --container \
+       --network \
+       --emulate-fhs \
+       $(GUIX_SHARE_OPTIONS) \
+       bash \
+       coreutils \
+       findutils \
+       git \
+       grep \
+       nss-certs \
+       pandoc \
+       sed \
+       -- \
+       ./build.sh
 else
 BUILD_SH_CMD = ./build.sh
 endif
@@ -100,9 +99,7 @@ build: site.cfg pages/footer.include
        $(BUILD_SH_CMD) $(BUILD_OPTIONS)
 
 if WANT_GUIX
-CHECK_SH_CMD = \
-guix shell \
-       --container \
+CHECK_SH_CMD = $(GUIX_SHELL) \
        --network \
        --emulate-fhs \
        bash \
@@ -138,8 +135,7 @@ help:
                "website.tar.gz # Create a tarball of the website"
 
 if WANT_GUIX
-SERVE_SH_CMD = \
-guix shell \
+SERVE_SH_CMD = $(GUIX_SHELL) \
        --container \
        --network \
        --emulate-fhs \
-- 
2.46.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]