Commit dc0ee78a authored by Lynn Garren's avatar Lynn Garren
Browse files

fix logic

parent 52898c4b
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -10,13 +10,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
......@@ -9,13 +9,14 @@ orig_includedir=@includedir@
# use the full name of this script to get the current path
configpath=`dirname ${0}`
# check for a leading slash to determine if this is a relative path
firstc=`expr ${configpath} : / >/dev/null`
if [ ! ${firstc} ]
firstc=`expr ${configpath} : /`
calldir=`pwd`
if [ ${firstc} -eq 0 ]
then
binpath=${configpath}
else
cd ${calldir}/${configpath}; newpath=`pwd`
binpath=${newpath}
else
binpath=${configpath}
fi
# OK - now we have to strip the trailing "/bin" out of the path
prefix=`dirname ${binpath}`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment