gitile/pre-inst-env.in

pre-inst-env.in

1
#!/bin/sh
2
3
# Copied from guix's pre-inst-env.in
4
#
5
# GNU Guix --- Functional package management for GNU
6
# Copyright © 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
7
# Copyright © 2017 Eric Bavier <bavier@cray.com>
8
# 
9
# SPDX-License-Identifier: GPL-3.0-or-later
10
11
abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd`"
12
abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd`"
13
14
GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
15
GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
16
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
17
18
PATH="$abs_top_builddir:$PATH"
19
export PATH
20
21
exec "$@"
22