From: Hans-Bernhard B. <br...@us...> - 2004-06-21 18:13:31
|
Update of /cvsroot/cscope/cscope/contrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6716/contrib Modified Files: ocs Log Message: Make ocs system cscope datafile storage directory configurable. Index: ocs =================================================================== RCS file: /cvsroot/cscope/cscope/contrib/ocs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ocs 22 May 2001 15:40:31 -0000 1.3 --- ocs 21 Jun 2004 18:13:21 -0000 1.4 *************** *** 72,78 **** CSCOPE=cscope - SYSDIR=/usr/local/lib/cs HOMEDIR=${HOME}/lib/cs # Check that cscope is in PATH type cscope 1>/dev/null 2>&1 --- 72,90 ---- CSCOPE=cscope HOMEDIR=${HOME}/lib/cs + #set the default value for SYSDIR + if [ -z "${SYSDIR}" ]; then + SYSDIR=/usr/local/lib/cs + echo setting default sysdir + fi + + #check that SYSDIR exists + if [ ! -d ${SYSDIR} ]; then + echo -n $SYSDIR does not exist. + echo Please create the directory and set SYSDIR appropriately + exit + fi + # Check that cscope is in PATH type cscope 1>/dev/null 2>&1 |