File: linux-setup.sh

package info (click to toggle)
cgreen 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,400 kB
  • sloc: ansic: 11,064; makefile: 417; cpp: 401; sh: 327; python: 177; xml: 33; sed: 8
file content (19 lines) | stat: -rwxr-xr-x 684 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
#
# When you run "make test" CMake obviously runs the correct binraries
# from the build directory. But when you want to run a test manually
# PATH and LD_LIBRARY_PATH need to be set, and it is tedious and error
# prone to remember that all the time.
#
# The follwing sets up the current shell in the same way, so that a
# developer can just source this script and then forget about it.
#

# Ensure that the script is sourced:
if [[ $_ == $0 ]]; then
   echo "You should really source this, like in '. cygwin-setup.sh'"
fi

# And here's the meat given that you have the standard build tree
export PATH="$PWD/build/tools":$PATH
export LD_LIBRARY_PATH="$PWD/build/src":$PATH