> something like this (golly, it was tough): > > --- /opt/onbld/bin/xref Mon Nov 20 23:45:50 2006 > +++ myxref Wed Nov 22 22:32:08 2006 > @@ -103,6 +103,10 @@ > CODEMGR_WS=`workspace name` export CODEMGR_WS > SRC=$CODEMGR_WS/usr/src export SRC > MACH=`uname -p` export MACH > + elif whence hg >/dev/null; then > + CODEMGR_WS=`hg root` export CODEMGR_WS > + SRC=$CODEMGR_WS/usr/src export SRC > + MACH=`uname -p` export MACH > else > fail "No active workspace; run \"ws <workspace_name>\"" > fi
While you're in there, it'd be good to rename CODEMGR_WS to ROOT or something more generic. Should be straightforward. -- meem _______________________________________________ tools-discuss mailing list [email protected]
