|
Boost-Build : |
From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-06-21 15:04:32
Hi,
The "whence" command is not available on all Unix variants,
so I suggest that it be replace by "type"
which is builtin for the /bin/sh shell.
This will get rid of error messages that build.sh prints out
when I build bjam on Linux and FreeBSD.
Index: build.sh
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/jam_src/build.sh,v
retrieving revision 1.30
diff -u -u -r1.30 build.sh
--- build.sh 28 Dec 2004 06:09:25 -0000 1.30
+++ build.sh 21 Jun 2005 20:01:27 -0000
@@ -43,8 +43,8 @@
# Check that a command is in the PATH.
test_path ()
{
- if `whence 1>/dev/null 2>/dev/null`; then
- whence $1 1>/dev/null 2>/dev/null
+ if `type 1>/dev/null 2>/dev/null`; then
+ type $1 1>/dev/null 2>/dev/null
else
hash $1 1>/dev/null 2>/dev/null
fi
-- Craig Rodrigues rodrigc_at_[hidden]
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk