File: linux-setup.sh

package info (click to toggle)
cgreen 1.6.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,588 kB
  • sloc: ansic: 12,276; sh: 558; makefile: 474; cpp: 403; python: 181; xml: 33; sed: 13
file content (19 lines) | stat: -rwxr-xr-x 684 bytes parent folder | download | duplicates (3)
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