From b8605698b8611f4835ee526a122e432665b07b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 27 Oct 2012 22:52:13 +0200 Subject: [PATCH] build: Make sure scripts know where to find their modules. * guix-build.in, guix-download.in: Define `prefix' and `datarootdir', so that `guilemoduledir' expands to something meaningful. --- guix-build.in | 3 +++ guix-download.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/guix-build.in b/guix-build.in index c241bf4fefc80cef562564966f21cb98f91c81dc..bd32ce951ef6bd5be750a709ae634b3c51cd68bb 100644 --- a/guix-build.in +++ b/guix-build.in @@ -1,6 +1,9 @@ #!/bin/sh # aside from this initial boilerplate, this is actually -*- scheme -*- code +prefix="@prefix@" +datarootdir="@datarootdir@" + GUILE_LOAD_COMPILED_PATH="@guilemoduledir@:$GUILE_LOAD_COMPILED_PATH" export GUILE_LOAD_COMPILED_PATH diff --git a/guix-download.in b/guix-download.in index 6ebb5148f8d689ef698ef31234bb185b9b02c555..3892b2efe3c7b165f3c6940d1409a5f0c90cdb77 100644 --- a/guix-download.in +++ b/guix-download.in @@ -1,6 +1,9 @@ #!/bin/sh # aside from this initial boilerplate, this is actually -*- scheme -*- code +prefix="@prefix@" +datarootdir="@datarootdir@" + GUILE_LOAD_COMPILED_PATH="@guilemoduledir@:$GUILE_LOAD_COMPILED_PATH" export GUILE_LOAD_COMPILED_PATH