diff options
author | Jon Schlueter <jon.schlueter@gmail.com> | 2010-05-29 08:43:19 -0400 |
---|---|---|
committer | Jon Schlueter <jon.schlueter@gmail.com> | 2010-06-05 09:05:54 -0400 |
commit | 0f32f5efe53a8cf4584c6d06af3f4e46cfbba6a4 (patch) | |
tree | c2b60c81aabd088d209b9f135cd79797dd35b5d4 /regress-driver | |
parent | a5e71ebdccaa40672cf84d5a237a550e5c4f7b89 (diff) | |
download | gpsd-0f32f5efe53a8cf4584c6d06af3f4e46cfbba6a4.tar.gz |
add GPSD_HOME environment variable support to gpsfake
check the environment variable GPSD_HOME to find gpsd on path specified
if not there check normal PATH env variable for gpsd
added note about GPSD_HOME in gpsfake.xml but might not be in correct location
changed regress-driver to use GPSD_HOME instead of adding current
directory to the PATH
Diffstat (limited to 'regress-driver')
-rwxr-xr-x | regress-driver | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/regress-driver b/regress-driver index 81c615ef..6cc040cc 100755 --- a/regress-driver +++ b/regress-driver @@ -8,12 +8,11 @@ # Should return an empty blank string if tose are not present. starttime=`date +"%s" 2>/dev/null` -# We need to have the build directory in $PATH to find the new gpsd -# in case there is one in $PATH somewhere else in the system. +# We need to have the build directory in $GPSD_HOME to find the new gpsd if [ "`dirname $0`" = "." ]; then - PATH=`pwd`:${PATH} + GPSD_HOME=`pwd` else - PATH=`dirname $0`:${PATH} + GPSD_HOME=`dirname $0` fi # Arrange to call a gpsfake in the source directory without fuss. |