From: Petr S. <pe...@us...> - 2000-12-12 14:58:02
|
Update of /cvsroot/cscope/cscope/contrib In directory slayer.i.sourceforge.net:/tmp/cvs-serv26503/contrib Modified Files: ocs Log Message: OCS now checks that cscope is in $PATH Index: ocs =================================================================== RCS file: /cvsroot/cscope/cscope/contrib/ocs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** ocs 2000/04/21 23:36:26 1.1 --- ocs 2000/12/12 14:57:59 1.2 *************** *** 71,77 **** # Here is where we put things ! CSCOPE=/usr/bin/cscope SYSDIR=/usr/local/lib/cs HOMEDIR=${HOME}/lib/cs # popup editor --- 71,87 ---- # Here is where we put things ! CSCOPE=cscope SYSDIR=/usr/local/lib/cs HOMEDIR=${HOME}/lib/cs + + # Check that cscope is in PATH + type cscope 1>/dev/null 2>&1 + + if [ $? -ne 0 ] + then + echo "ERROR: cscope is not in \$PATH" >&2 + echo " Please set \$PATH correctly or make sure cscope is installed" >&2 + exit 1 + fi # popup editor |