aboutsummaryrefslogtreecommitdiff
dnl SPDX-License-Identifier: CC0-1.0
dnl
dnl Copyright (C) 2023 Wojtek Kosior <koszko@koszko.org>
dnl
dnl This file proviced an autoconf macro that generates a pre-inst-env script
dnl suitable for use in Guile projects.
dnl
# AX_ADD_GUILE_PRE_INST_ENV([FILENAME = pre-inst-env],
#                           [SCM_ROOT_PATH = src/guile],
#                           [GO_ROOT_PATH = src/guile]
#                           [SCRIPTS_PATH = scripts])
# ------------------------------------------------------------------------------
AC_DEFUN([AX_ADD_GUILE_PRE_INST_ENV], [
printf '%s' '
set -eu

SOURCE_DIR='"$(cd "$srcdir" && pwd -P)"'
BUILD_DIR="$(cd "$(dirname "[$]0")" && pwd -P)"

export G''UILE_LOAD_PATH="$SOURCE_DIR/m4_default([$2], [src/guile])[]dnl
:$BUILD_DIR/m4_default([$3], [src/guile])[]dnl
${G''UILE_LOAD_PATH:+:}${G''UILE_LOAD_PATH:-}"

export G''UILE_LOAD_COMPILED_PATH="$BUILD_DIR/m4_default([$3], [src/guile])[]dnl
${G''UILE_LOAD_COMPILED_PATH:+:}${G''UILE_LOAD_COMPILED_PATH:-}"

export G''UILE_AUTO_COMPILE=0

export PATH="$SOURCE_DIR/m4_default([$3], [scripts])${PATH:+:}${PATH:-}"

if test 0 = "[$]#"
then :
     "${SHELL:-/bin/sh}"
else :
    PROGRAM="[$]1"
    shift
    "$PROGRAM" "[$]@"
fi
' > m4_default([$1], [pre-inst-env])

chmod 755 m4_default([$1], [pre-inst-env])
])dnl AX_ADD_GUILE_PRE_INST_ENV
* .mailmap: Add an entry for Juliana. * gnu/packages/admin.scm, gnu/packages/audio.scm, gnu/packages/build-tools.scm, gnu/packages/scheme.scm: Update Juliana's email. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims 2022-01-11Update mailmap....* .mailmap: Add entry for Zheng Junjie. Leo Famulari 2021-11-06Update mailmap and copyright assignments for Liliana Marie Prikler....Use full names everywhere. * .mailmap: Use full name for Liliana Marie Prikler. * gnu/packages/zig.scm: Likewise. Liliana Marie Prikler 2021-09-06Update mailmap....* .mailmap: Add entry for Liliana Marie Prikler. Liliana Marie Prikler 2021-09-04Update mailmap....* .mailmap: Alias all my contributions to the same identity. Marius Bakke 2021-07-27Update mailmap....* .mailmap: Add entry for Christine Lemmer-Webber. Leo Famulari 2021-07-08mailmap: Update entries for Matthew James Kraai....* .mailmap: Change name for Matthew James Kraai. * gnu/packages/lisp-xyz.scm, gnu/packages/python-xyz.scm, gnu/packages/rust.scm: Likewise. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Matthew James Kraai 2021-06-23gnu: Add Sollya....* gnu/packages/algebra.scm (sollya): New variable. * .mailmap: Adjust "proper email" for `git commit`. Eric Bavier 2021-04-21Update email address for Kei....* .mailmap: Remove obsolete email for Kei. Kei Kebreau