File: pre-inst-env.in

package info (click to toggle)
guile-lib 0.2.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,940 kB
  • sloc: lisp: 7,099; sh: 4,177; makefile: 190
file content (87 lines) | stat: -rw-r--r-- 2,210 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh

####
#### Copyright (C) 2016 - 2018 David Pirotte
#### David Pirotte <david at altosw dot be>

#### This file is part of Guile-Lib.

#### Guile-Lib is free software: you can redistribute it, as a whole,
#### 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.

#### Each Guile-Lib module contained in Guile-Lib has its own copying
#### conditions, specified in the comments at the beginning of the
#### module's source file.

#### Guile-Lib 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 Guile-Lib.  If not, see
#### <http://www.gnu.org/licenses/>.
####


abs_top_srcdir="@abs_top_srcdir@/src"
abs_top_builddir="@abs_top_builddir@/src"

[ x"$abs_top_srcdir"   = x -o ! -d "$abs_top_srcdir" -o \
  x"$abs_top_builddir" = x -o ! -d "$abs_top_builddir" ] && {
    echo $0: bad environment
    echo abs_top_srcdir=$abs_top_srcdir
    echo abs_top_builddir=$abs_top_builddir
    exit 1
}


###
### GUILE_LOAD_PATH
###

if [ x"$GUILE_LOAD_PATH" = x ]
then
    GUILE_LOAD_PATH=$abs_top_builddir:$abs_top_srcdir
else
    GUILE_LOAD_PATH=$abs_top_builddir:$abs_top_srcdir:$GUILE_LOAD_PATH
fi
## echo $GUILE_LOAD_PATH
export GUILE_LOAD_PATH


###
### GUILE_LOAD_COMPILED_PATH
###

if [ x"$GUILE_LOAD_COMPILED_PATH" = x ]
then
    GUILE_LOAD_COMPILED_PATH=$abs_top_builddir:$abs_top_srcdir
else
    GUILE_LOAD_COMPILED_PATH=$abs_top_builddir:$abs_top_srcdir:$GUILE_LOAD_COMPILED_PATH
fi
## echo $GUILE_LOAD_COMPILED_PATH
export GUILE_LOAD_COMPILED_PATH


###
### LD_LIBRARY_PATH
###

## if [ x"$LD_LIBRARY_PATH" = x ]
## then
##     LD_LIBRARY_PATH=$abs_top_srcdir/libgrip
## else
##     LD_LIBRARY_PATH=$abs_top_srcdir/libgrip:$LD_LIBRARY_PATH
## fi

## echo $LD_LIBRARY_PATH
## export LD_LIBRARY_PATH

## TEST_IMAGES_PATH=$abs_top_srcdir/doc/images
## export TEST_IMAGES_PATH


exec "$@"