[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Fail sensibly when the "which" command is "borked". (T...
Update of /home/minion/cvsroot/src/minion
In directory moria.mit.edu:/tmp/cvs-serv6381
Modified Files:
Makefile
Log Message:
Fail sensibly when the "which" command is "borked". (Thanks to Mike Gurski)
Index: Makefile
===================================================================
RCS file: /home/minion/cvsroot/src/minion/Makefile,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- Makefile 17 Feb 2003 15:50:19 -0000 1.37
+++ Makefile 20 Feb 2003 02:21:41 -0000 1.38
@@ -15,6 +15,11 @@
PYTHON_CANDIDATES = python2.2 python2.2x python2.1 python2.1x python2.0 \
python2.0x python2 python
FINDPYTHON = \
+ if [ "x`which which`" = "x" ]; then \
+ echo "Ouch! I couldn't run 'which' on your system."; \
+ echo "Please make sure it is there, and try again."; \
+ exit; \
+ fi; \
if [ 'x' = "x$$PYTHON" ]; then \
for n in $(PYTHON_CANDIDATES) ; do \
if [ 'x' = "x$$PYTHON" ]; then \