File: testenv.sh

package info (click to toggle)
libbytesize 2.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 784 kB
  • sloc: python: 1,850; ansic: 994; sh: 666; makefile: 258
file content (25 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

if [ -z "$top_srcdir" ]; then
    echo "*** top_srcdir must be set"
fi

# If no top_builddir is set, use top_srcdir
: "${top_builddir:=$top_srcdir}"

if [ -z "$PYTHONPATH" ]; then
    PYTHONPATH="${top_srcdir}/src/python"
else
    PYTHONPATH="${PYTHONPATH}:${top_srcdir}/src/python"
fi

if [ -z "$LD_LIBRARY_PATH" ]; then
    LD_LIBRARY_PATH="${top_builddir}/src/.libs"
else
    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${top_builddir}/src/.libs"
fi

export PYTHONPATH
export LD_LIBRARY_PATH
export top_srcdir
export top_builddir